Style module
- class Style.Style
Bases:
DocumentSerializable,IStyleRepresents a style in a document.
- ApplyBaseStyle
Applies a base style to this style.
- property CharacterFormat: CharacterFormat
Gets the character format of the style.
- Clone() IStyle
Creates a deep copy of this style.
- CreateBuiltinStyle
A function that is part of a class.
This wrapper provides a mechanism that allows the function to be constructed with a reference to the class that it owns. The construction is deferred until __set_name__ is called.
- Parameters:
class_name (str) – Name of the class that owns the function.
construct_function (function) – Constructor for the function: takes in a reference to the class that owns the function and gives back the function.
- property GetStyleType: StyleType
Gets the style type.
- property IsCustomStyle: bool
Gets or sets a value indicating whether this instance is a custom style.
- property IsHeading: bool
Gets a value indicating whether this style is a heading style.
- property Name: str
Gets or sets the name of the style.
- static NameToBuiltIn(styleName: str) BuiltinStyle
Converts a style name to a built-in style.
- property StyleId: str
Gets or sets the style id.
