Class RichTextNode
Node that renders rich text.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class RichTextNode : Node, IUnitIndependent, IDispatchNodeEvents, ISerializable, INode, ICloneable, IServiceReferenceHolder, IServiceReferenceProvider, IPropertyObserver, IPropertyContainer, IServiceProvider, IGraphNode, IDeserializationCallback, IDisposable
Constructors
RichTextNode(RichTextNode)
Initializes a new instance of the RichTextNode class.
Declaration
public RichTextNode(RichTextNode src)
Parameters
Type | Name | Description |
---|---|---|
RichTextNode | src | Source object to copy from. |
RichTextNode(SerializationInfo, StreamingContext)
Initializes a new instance of the RichTextNode class.
Declaration
protected RichTextNode(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | Serialization state information. |
System.Runtime.Serialization.StreamingContext | context | Streaming context information. |
RichTextNode(String, RectangleF)
Initializes a new instance of the RichTextNode class.
Declaration
public RichTextNode(string strRTFText, RectangleF rectBounds)
Parameters
Type | Name | Description |
---|---|---|
System.String | strRTFText | The STR RTF text. |
System.Drawing.RectangleF | rectBounds | The rect bounds. |
RichTextNode(String, RectangleF, MeasureUnits)
Initializes a new instance of the RichTextNode class.
Declaration
public RichTextNode(string strRTFText, RectangleF rectBounds, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.String | strRTFText | Text value including RTF codes. |
System.Drawing.RectangleF | rectBounds | RichTextNode bounding rectangle. |
MeasureUnits | measureUnits | Specifies points measure units. |
Properties
BackgroundColor
Gets or sets color used to fill the background.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ReadOnly
Gets or sets a value indicating whether the text object is Read-only or not.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type |
---|
System.Boolean |
RichText
Gets or sets rich text include all RTF codes.
Declaration
public string RichText { get; set; }
Property Value
Type |
---|
System.String |
Text
Gets or sets the value contained by the text object.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
Remarks
Derived classes override this property in order to supply the text value in an implementation specific way.
TextCase
Gets or sets case of text in the RichTextNode
Declaration
public TextCases TextCase { get; set; }
Property Value
Type |
---|
TextCases |
UseBitmap
Gets or sets a value indicating whether to determine rendering mode. By default RichTextNode is rendered as EMF.
Declaration
public bool UseBitmap { get; set; }
Property Value
Type |
---|
System.Boolean |
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. |
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 |