Class HandleStyle
A FillStyle is a collection of properties that define a brush used for fill operations during rendering.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class HandleStyle : PropertyContainer, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, ICloneable, ISerializable, IDisposable
Constructors
HandleStyle()
Initializes a new instance of the HandleStyle class.
Declaration
public HandleStyle()
HandleStyle(HandleStyle)
Initializes a new instance of the HandleStyle class.
Declaration
public HandleStyle(HandleStyle src)
Parameters
Type | Name | Description |
---|---|---|
HandleStyle | src | The handle style. |
HandleStyle(SerializationInfo, StreamingContext)
Initializes a new instance of the HandleStyle class.
Declaration
protected HandleStyle(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
FillColor
Gets or sets Color to use for the brush.
Declaration
public Color FillColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Remarks
NOTE: If Type is set to FillType.LinearGradient, then this is the ending color for the gradient.
FillColorAlphaFactor
Gets or sets Alpha blending factor.
Declaration
public int FillColorAlphaFactor { get; set; }
Property Value
Type |
---|
System.Int32 |
HandleSize
Gets or sets Hatch brush style to create for filled regions.
Declaration
public HandleSize HandleSize { get; set; }
Property Value
Type |
---|
HandleSize |
OutlineColor
Gets or sets the foreground color used for the fill style.
Declaration
public Color OutlineColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Remarks
NOTE: If Type is set to FillType.LinearGradient, then this is the starting color for the gradient.
OutlineColorAlphaFactor
Gets or sets Alpha blending factor for the ForeColor.
Declaration
public int OutlineColorAlphaFactor { get; set; }
Property Value
Type |
---|
System.Int32 |
Type
Gets or sets Handle Type.
Declaration
public HandleStyleType Type { get; set; }
Property Value
Type |
---|
HandleStyleType |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Overrides
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |
GetPropertyContainerName()
Gets the name of the property container.
Declaration
protected override string GetPropertyContainerName()
Returns
Type | Description |
---|---|
System.String | Property container name. |
Overrides
ShouldSerializeColor()
Shows whether OutlineColor will be serializable.
Declaration
protected bool ShouldSerializeColor()
Returns
Type | Description |
---|---|
System.Boolean | true, if serialize color. |
ShouldSerializeForeColor()
Shows whether FillColor will be serializable.
Declaration
protected bool ShouldSerializeForeColor()
Returns
Type | Description |
---|---|
System.Boolean | rue, if serialize forecolor. |