Click or drag to resize

TextElementFormat Property

Gets or sets the character formatting options.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1032 (21.3.35.1032)
Syntax
public TextCharacterFormat Format { get; set; }

Property Value

Type: TextCharacterFormat
The character formatting options.
Remarks

This property always returns a new instance of a TextCharacterFormat that points to data associated with this text element. 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 TextCharacterFormat won't actually be stored in this text element, 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.

See Also