Class TextBody
Represents a Text Body.
Inheritance
System.Object
TextBody
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 TextBody : WidgetContainer, IXDLSSerializable, ITextBody, IEntityBase, IWidgetContainer, IWidget
Constructors
TextBody(IDocument)
Default constructor.
Declaration
public TextBody(IDocument doc)
Parameters
Type | Name | Description |
---|---|---|
IDocument | doc |
Fields
m_paragraphs
The section paragraphs
Declaration
protected IParagraphCollection m_paragraphs
Field Value
Type |
---|
IParagraphCollection |
Properties
Paragraphs
Gets inner paragraphs
Declaration
public IParagraphCollection Paragraphs { get; }
Property Value
Type |
---|
IParagraphCollection |
WidgetCollection
Declaration
protected override ICollectionBase WidgetCollection { get; }
Property Value
Type |
---|
ICollectionBase |
Overrides
Methods
AddParagraph()
Adds paragraph at end of section.
Declaration
public IParagraph AddParagraph()
Returns
Type |
---|
IParagraph |
CreateLayoutInfo()
Declaration
protected override void CreateLayoutInfo()
Overrides
InitXDLSHolder()
Declaration
protected override void InitXDLSHolder()
Overrides
InsertHTML(String)
Inserts html at end of text body.
Declaration
public void InsertHTML(string html)
Parameters
Type | Name | Description |
---|---|---|
System.String | html |
InsertHTML(String, Int32)
Inserts html begins from paragraph spesified by paragraphIndex
Declaration
public void InsertHTML(string html, int paragraphIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | html | |
System.Int32 | paragraphIndex |
InsertHTML(String, Int32, Int32)
Inserts html begins from paragraph spesified by paragraphIndex, and after paragraph item by paragraphItemIndex
Declaration
public void InsertHTML(string html, int paragraphIndex, int paragraphItemIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | html | |
System.Int32 | paragraphIndex | |
System.Int32 | paragraphItemIndex |