Represents minimal text run that has same formatting.
Inheritance
System.Object
TextRange
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()
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
Declaration
protected CharacterFormat m_format
Field Value
Declaration
protected string m_strDetachedText
Field Value
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
Declaration
protected int TextLength { get; set; }
Property Value
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
Declaration
protected override void InitXDLSHolder()
Overrides
Declaration
public SizeF Measure(CustomGraphics cg)
Parameters
Returns
Type |
System.Drawing.SizeF |
Declaration
protected override bool ReadXmlContent(IXDLSContentReader reader)
Parameters
Returns
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
Declaration
SizeF ITextMeasurable.Measure(CustomGraphics cg, string text)
Parameters
Returns
Type |
System.Drawing.SizeF |
Declaration
void IWidget.Draw(CustomGraphics cg, LayoutedWidget ltWidget)
Parameters
Implements