Class FilledPath
Base shape class to visualize closed path and fill it using the FillStyle property.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class FilledPath : PathNode, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
FilledPath()
Initializes a new instance of the FilledPath class.
Declaration
public FilledPath()
FilledPath(FilledPath)
Initializes a new instance of the FilledPath class.
Declaration
public FilledPath(FilledPath src)
Parameters
Type | Name | Description |
---|---|---|
FilledPath | src | The source instance. |
FilledPath(GraphicsPath)
Initializes a new instance of the FilledPath class.
Declaration
public FilledPath(GraphicsPath path)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Drawing2D.GraphicsPath | path | The graphics path. |
FilledPath(SerializationInfo, StreamingContext)
Initializes a new instance of the FilledPath class.
Declaration
protected FilledPath(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The serialization info. |
System.Runtime.Serialization.StreamingContext | context | The serialization context. |
Fields
m_benableshading
Flag to enable shading.
Declaration
protected bool m_benableshading
Field Value
Type |
---|
System.Boolean |
Properties
EnableShading
Gets or sets a value indicating whether shading should be enabled.
Declaration
public bool EnableShading { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
FillStyle
Gets the properties used to fill the interior of regions.
Declaration
public FillStyle FillStyle { get; }
Property Value
Type | Description |
---|---|
FillStyle | The fill style. |
Remarks
The fill style is used to create brushes for painting interior regions of the shape.
FillStyleMethods
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
Dispose()
Declaration
public override void Dispose()
Overrides
DrawBorder(Graphics)
Draws shape's border on given graphics.
Declaration
protected virtual void DrawBorder(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on |
DrawInterior(Graphics)
Draws shape's interior on given graphics.
Declaration
protected virtual void DrawInterior(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on |
DrawShading(Graphics)
Draw the shading over node.
Declaration
protected virtual void DrawShading(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | The Graphics to draw on. |
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. |
GetPropertyContainer(String)
Gets the property container.
Declaration
protected override object GetPropertyContainer(string strPropertyContainerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPropertyContainerName | Name of the property container. |
Returns
Type | Description |
---|---|
System.Object | The property container object. |
Overrides
Render(Graphics)
Renders shapes visual representation on given graphics.
Declaration
protected override void Render(Graphics gfx)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gfx | Graphics to draw on |
Overrides
UpdateReferences(IServiceReferenceProvider)
Updates the references from service provider.
Declaration
public override void UpdateReferences(IServiceReferenceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceReferenceProvider | provider | The service provider. |