Class DocumentStyle
Implements
Namespace: IronPPT.Models.Abstract
Assembly: IronPPT.dll
Syntax
public abstract class DocumentStyle : Object, IDocumentStyle
When a style needs an identity and a state in the document's style system, DocumentStyle supplies the base. It is the shared parent for the named styling types, holding the two things every style has in common: an identifier and a status. A developer works with the concrete styles that derive from it, TextStyle, ParagraphStyle, and Style, rather than this base on its own.
Because the class is abstract, a style is created as one of those derived types and then carries the members below through inheritance. Code that treats styles uniformly can hold one as IDocumentStyle, the contract this class implements, so a style can be referenced without naming its exact kind.
StyleId is the string that identifies the style within the document, used to reference and reuse it, and Status is an ElementStatus describing the style's current state. These let a style be tracked and addressed across the document so the same formatting can be reused rather than redefined. Set StyleId to a stable value when a style is meant to be shared so later references resolve to the same definition.
The add text how-to covers styling slide text, and the TextStyle reference documents a concrete style that derives from this base.
Constructors
DocumentStyle()
Declaration
protected DocumentStyle()
Properties
Status
Declaration
public ElementStatus Status { get; set; }
Property Value
| Type | Description |
|---|---|
| ElementStatus |
StyleId
Declaration
public string StyleId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |