Class TextShape
Represents text shape.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DLS
Assembly: Syncfusion.DLS.Base.dll
Syntax
public class TextShape : Shape, IEntityBase, IXDLSSerializable, IShape, ILeafWidget, IWidget
Remarks
Supported by Essential PDF only.
Constructors
TextShape(Canvas)
Initializing constructor
Declaration
public TextShape(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Canvas | canvas |
Properties
Bounds
Gets / sets bounds of the text.
Declaration
public RectangleF Bounds { get; set; }
Property Value
Type |
---|
System.Drawing.RectangleF |
CharacterFormat
Gets / Sets the CharacterFormat of the Text
Declaration
public CharacterFormat CharacterFormat { get; }
Property Value
Type |
---|
CharacterFormat |
Location
Gets / sets location of the text.
Declaration
public PointF Location { get; set; }
Property Value
Type |
---|
System.Drawing.PointF |
Size
Gets / sets size of the bounds.
Declaration
public SizeF Size { get; set; }
Property Value
Type |
---|
System.Drawing.SizeF |
Text
Gets / sets the text.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
X
Gets / sets x coordinate of the text.
Declaration
public float X { get; set; }
Property Value
Type |
---|
System.Single |
Y
Gets / sets y coordinate of the text.
Declaration
public float Y { get; set; }
Property Value
Type |
---|
System.Single |
Methods
InitXDLSHolder()
Declaration
protected override void InitXDLSHolder()
Overrides
ReadXmlAttributes(IXDLSAttributeReader)
Declaration
protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeReader | reader |
Overrides
ReadXmlContent(IXDLSContentReader)
Reads data from XML.
Declaration
protected override bool ReadXmlContent(IXDLSContentReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentReader | reader | Reader object. |
Returns
Type |
---|
System.Boolean |
Overrides
WriteXmlAttributes(IXDLSAttributeWriter)
Declaration
protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeWriter | writer |
Overrides
WriteXmlContent(IXDLSContentWriter)
Writes text to XML.
Declaration
protected override void WriteXmlContent(IXDLSContentWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSContentWriter | writer | Writer object. |
Overrides
Explicit Interface Implementations
IWidget.Draw(CustomGraphics, LayoutedWidget)
Declaration
void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
Parameters
Type | Name | Description |
---|---|---|
CustomGraphics | cg | |
LayoutedWidget | ltWidget |