Represents minimal text run that has same formatting.
Inheritance
System.Object
TextRange
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.DLS.Base.dll
public class TextRange : ParagraphItem, IXDLSSerializable, ITextRange, IParagraphItem, IEntityBase, IStringWidget, ISplitLeafWidget, ILeafWidget, IWidget, ITextMeasurable
Constructors
Declaration
public TextRange(IDocument doc)
Parameters
Declaration
protected TextRange(ITextRange txtRange, IParagraph paragraph)
Parameters
Fields
Declaration
protected bool m_bDetached
Field Value
Type |
Description |
System.Boolean |
|
Declaration
protected CharacterFormat m_format
Field Value
Declaration
protected string m_strDetachedText
Field Value
Type |
Description |
System.String |
|
Properties
Gets character format( font properties ).
Declaration
public CharacterFormat CharacterFormat { get; }
Property Value
Declaration
public Hyperlink Hyperlink { get; }
Property Value
Declaration
protected Paragraph OwnerParagraphEx { get; }
Property Value
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
protected int TextLength { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public override IParagraphItem Clone(IParagraph paragraph)
Parameters
Returns
Overrides
Declaration
protected override void CreateLayoutInfo()
Overrides
Declaration
public double GetTextAscent(CustomGraphics cg)
Parameters
Returns
Type |
Description |
System.Double |
|
Declaration
protected override void InitXDLSHolder()
Overrides
Declaration
public SizeF Measure(CustomGraphics cg)
Parameters
Returns
Type |
Description |
System.Drawing.SizeF |
|
Declaration
protected override bool ReadXmlContent(IXDLSContentReader reader)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
protected override void SetOwnerParagraph(IParagraph paragraph, int startIndex)
Parameters
Type |
Name |
Description |
IParagraph |
paragraph |
|
System.Int32 |
startIndex |
|
Overrides
Declaration
protected override void WriteXmlContent(IXDLSContentWriter writer)
Parameters
Overrides
Explicit Interface Implementations
Declaration
ISplitLeafWidget[] ISplitLeafWidget.SplitByOffset(CustomGraphics cg, SizeF offset)
Parameters
Returns
Declaration
void IStringWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget, string text)
Parameters
Declaration
int IStringWidget.OffsetToIndex(CustomGraphics cg, double offset, string text)
Parameters
Type |
Name |
Description |
CustomGraphics |
cg |
|
System.Double |
offset |
|
System.String |
text |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
SizeF ITextMeasurable.Measure(CustomGraphics cg, string text)
Parameters
Returns
Type |
Description |
System.Drawing.SizeF |
|
Declaration
void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
Parameters
Implements