ooodev.format.draw.modify.indent_space.line_spacing module
Draw Style Line Spacing.
New in version 0.17.12.
- class ooodev.format.draw.modify.indent_space.line_spacing.LineSpacing(*, mode=None, value=0, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]
Bases:
ParaStyleBaseMulti
Line Spacing Style values.
See also
New in version 0.17.12.
- __init__(*, mode=None, value=0, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]
Constructor
- Parameters:
mode (ModeKind, optional) – Determines the mode that is used to apply units.
value (Real, UnitT, optional) – Value of line spacing. Only applies when
ModeKind
isPROPORTIONAL
,AT_LEAST
,LEADING
, orFIXED
.style_name (FamilyGraphics, str, optional) – Specifies the Style that instance applies to. Default is Default
standard
Style.style_family (str, DrawStyleFamilyKind, optional) – Family Style. Defaults to
graphics
.
- Return type:
None
Note
If
ModeKind
isSINGLE
,LINE_1_15
,LINE_1_5
, orDOUBLE
thenvalue
is ignored.If
ModeKind
isAT_LEAST
,LEADING
, orFIXED
thenvalue
is a float (in mm units
) or Class UnitTIf
ModeKind
isPROPORTIONAL
then value is an int representing percentage. For example95
equals95%
,130
equals130%
See also
- classmethod from_style(doc, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]
Gets instance from Document.
- Parameters:
doc (Any) – UNO Document Object.
style_name (FamilyGraphics, str, optional) – Specifies the Style that instance applies to. Default is
FamilyGraphics.DEFAULT_DRAWING_STYLE
.style_family (DrawStyleFamilyKind, str, optional) – Style family. Default
DrawStyleFamilyKind.GRAPHICS
.
- Returns:
LineSpacing
instance from document properties.- Return type:
- property prop_inner: LineSpacing
Gets/Sets Inner Font instance
- Return type:
- property prop_style_name: str
Gets/Sets property Style Name
- Return type:
str