TextParagraph Class
Represents a paragraph of text.
- Inheritance:
- System.ObjectTextParagraph
Properties
Elements
Gets the paragraph text elements.
public TextElementCollection Elements { get; }
Public ReadOnly Property Elements As TextElementCollection
Property Value
The paragraph text elements.
Format
Gets or sets the paragraph's formatting options.
public TextParagraphFormat Format { get; set; }
Public Property Format As TextParagraphFormat
Property Value
The paragraph's formatting options.
Remarks
This property always returns a new instance of a TextParagraphFormat that points to data associated with this paragraph. This reduces memory footprint since simpler internal structures can be used to hold the data and execution time increase is negligible since Garbage Collector has a very good performance for a short-lived (Generation 0) objects.
When setting a value, instance of a TextParagraphFormat won't actually be stored in this paragraph, but the data to which the instance points to will be copied. This enables easy copying of complex properties from one text element to another.
Methods
ToString()
Returns a System.String that represents this TextParagraph instance.
Returns
- System.String
A System.String that represents this TextParagraph instance.