Class MetafileNode
Stores and renders an enhanced metafile image.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class MetafileNode : Node, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
MetafileNode(MetafileNode)
Initializes a new instance of the MetafileNode class.
Declaration
public MetafileNode(MetafileNode src)
Parameters
Type | Name | Description |
---|---|---|
MetafileNode | src | Object to copy. |
MetafileNode(Metafile)
Initializes a new instance of the MetafileNode class.
Declaration
public MetafileNode(Metafile srcMetafile)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Imaging.Metafile | srcMetafile | Metafile for the node. |
MetafileNode(Metafile, RectangleF)
Initializes a new instance of the MetafileNode class.
Declaration
public MetafileNode(Metafile src, RectangleF rcBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Imaging.Metafile | src | Metafile for the node. |
System.Drawing.RectangleF | rcBounds | The node bounds. |
MetafileNode(Metafile, RectangleF, MeasureUnits)
Initializes a new instance of the MetafileNode class.
Declaration
public MetafileNode(Metafile src, RectangleF rcBounds, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Imaging.Metafile | src | Metafile for the node. |
System.Drawing.RectangleF | rcBounds | The node bounds. |
MeasureUnits | measureUnits | Specifies rcBounds measure units. |
MetafileNode(Stream)
Initializes a new instance of the MetafileNode class.
Declaration
public MetafileNode(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | IO stream containing the Metafile. |
MetafileNode(SerializationInfo, StreamingContext)
Initializes a new instance of the MetafileNode class.
Declaration
protected MetafileNode(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization state information. |
System.Runtime.Serialization.StreamingContext | context | Streaming context information. |
MetafileNode(String)
Initializes a new instance of the MetafileNode class.
Declaration
public MetafileNode(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Name of file to load Metafile from. |
Properties
Image
Gets the System.Drawing.Imaging.Metafile.
Declaration
public Metafile Image { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Imaging.Metafile | The image. |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | Copy of the object this method is invoked against. |
Overrides
GetObjectData(SerializationInfo, StreamingContext)
Populates a 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 | SerializationInfo object to populate. |
System.Runtime.Serialization.StreamingContext | context | Destination streaming context. |
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 |