Class Shape
Provides a base class for shape elements, such as Ellipse, Polygon, and Rectangle.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Spreadsheet.UI
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public abstract class Shape : FrameworkElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, IShortcutProvider, IStylableElement, IStylableNode, ISupportDrop
Constructors
Shape()
Initializes a new instance of the Shape class.
Declaration
public Shape()
Fields
FillProperty
Identifies the Fill rad property.
Declaration
public static RadProperty FillProperty
Field Value
RadProperty
|
StrokeProperty
Identifies the Stroke rad property.
Declaration
public static RadProperty StrokeProperty
Field Value
RadProperty
|
Properties
Fill
Gets or sets the Brush that specifies how the shape's interior is painted.
Declaration
public Brush Fill { get; set; }
Property Value
System.Drawing.Brush
|
Stroke
Gets or sets the Brush that specifies how the Shape outline is painted.
Declaration
public Brush Stroke { get; set; }
Property Value
System.Drawing.Brush
|
StrokeDashArray
Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that is used to outline shapes.
Declaration
public DoubleCollection StrokeDashArray { get; set; }
Property Value
DoubleCollection
|
StrokeDashOffset
Gets or sets a Double that specifies the distance within the dash pattern where a dash begins.
Declaration
public float StrokeDashOffset { get; set; }
Property Value
System.Single
|
StrokeThickness
Gets or sets the width of the Shape outline.
Declaration
public double StrokeThickness { get; set; }
Property Value
System.Double
|
Methods
GetStrokePen()
Gets the stroke pen.
Declaration
protected virtual Pen GetStrokePen()
Returns
System.Drawing.Pen
|
IsInVisibleClipBounds(Rectangle)
Determines whether the shape is in the visible clip bounds of the specified clip rectangle.
Declaration
protected override bool IsInVisibleClipBounds(Rectangle clipRectangle)
Parameters
System.Drawing.Rectangle
clipRectangle
The clip rectangle. |
Returns
System.Boolean
|
Overrides
MeasureOverride(SizeF)
Measures a Shape during the first layout pass prior to arranging it.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
A maximum Size to not exceed. |
Returns
System.Drawing.SizeF
The maximum Size for the Shape. |