Class
DocumentProperties

Defines document-level settings for view type, tab stop width, and header/footer configuration. Use to control global document behavior and appearance.

Definition

Properties

DefaultTabStopWidth

Gets the default spacing between automatic tab stops in device independent pixels (1/96 inch) when explicit tab stops are not defined.

Declaration

cs-api-definition
public IStyleProperty<double?> DefaultTabStopWidth { get; }

Property Value

IStyleProperty<double?>

The default width of the tab stop.

HasDifferentEvenOddPageHeadersFooters

Gets a value indicating whether the document uses distinct headers and footers for even-numbered and odd-numbered pages.

Declaration

cs-api-definition
public IStyleProperty<bool?> HasDifferentEvenOddPageHeadersFooters { get; }

Property Value

IStyleProperty<bool?>

ViewType

Gets the suggested viewing mode for the document (e.g., PrintLayout, WebLayout, Normal).

Declaration

cs-api-definition
public IStyleProperty<DocumentViewType?> ViewType { get; }

Property Value

IStyleProperty<DocumentViewType?>

Methods

EnumerateStyleProperties()

Enumerates all style properties specific to document-level settings.

Declaration

cs-api-definition
protected override IEnumerable<IStyleProperty> EnumerateStyleProperties()

Returns

IEnumerable<IStyleProperty>

The style properties.

Overrides DocumentElementPropertiesBase.EnumerateStyleProperties()

GetStylePropertyOverride(IStylePropertyDefinition)

Retrieves the document-level style property matching the specified definition, or null if not applicable.

Declaration

cs-api-definition
protected override IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)

Parameters

propertyDefinition

IStylePropertyDefinition

The property definition.

Returns

IStyleProperty

Overrides DocumentElementPropertiesBase.GetStylePropertyOverride(IStylePropertyDefinition)