PortionFormat class

PortionFormat class

This class contains the text portion formatting properties. Unlike IPortionFormatEffectiveData, all properties of this class are writeable.

Inheritance:PortionFormatBasePortionFormatPVIObject

The PortionFormat type exposes the following members:

Constructors

ConstructorDescription
__init__Initializes a new instance of PortionFormat class.

Properties

PropertyDescription
line_formatReturns the LineFormat properties for text outlining. No inheritance applied.
Read-only ILineFormat.
fill_formatReturns the text FillFormat properties. No inheritance applied.
Read-only IFillFormat.
effect_formatReturns the text EffectFormat properties. No inheritance applied.
Read-only IEffectFormat.
highlight_colorReturns the color used to highlight a text. No inheritance applied.
Read-only IColorFormat.
underline_line_formatReturns the LineFormat properties used to outline underline line. No inheritance applied.
Read-only ILineFormat.
underline_fill_formatReturns the underline line FillFormat properties. No inheritance applied.
Read-only IFillFormat.
font_boldDetermines whether the font is bold. No inheritance applied.
Read/write NullableBool.
font_italicDetermines whether the font is itallic. No inheritance applied.
Read/write NullableBool.
kumimojiDetermines whether the numbers should ignore text eastern language-specific vertical text layout. No inheritance applied.
Read/write NullableBool.
normalise_heightDetermines whether the height of a text should be normalized. No inheritance applied.
Read/write NullableBool.
proof_disabledDetermines whether the text shouldn’t be proofed. No inheritance applied.
Read/write NullableBool.
font_underlineReturns or sets the text underline type. No inheritance applied.
Read/write TextUnderlineType.
text_cap_typeReturns or sets the type of text capitalization. No inheritance applied.
Read/write TextCapType.
strikethrough_typeReturns or sets the strikethrough type of a text. No inheritance applied.
Read/write TextStrikethroughType.
is_hard_underline_lineDetermines whether the underline style has own LineFormat properties or inherits it
from the LineFormat properties of the text.
Read/write NullableBool.
is_hard_underline_fillDetermines whether the underline style has own FillFormat properties or inherits it
from the FillFormat properties of the text.
Read/write NullableBool.
font_heightReturns or sets the font height of a portion.
float.NaN means height is undefined and should be inherited from the Master.
Read/write float.
latin_fontReturns or sets the Latin font info.
Null means font is undefined and should be inherited from the Master.
Read/write IFontData.
east_asian_fontReturns or sets the East Asian font info.
Null means font is undefined and should be inherited from the Master.
Read/write IFontData.
complex_script_fontReturns or sets the complex script font info.
Null means font is undefined and should be inherited from the Master.
Read/write IFontData.
symbol_fontReturns or sets the symbolic font info.
Null means font is undefined and should be inherited from the Master.
Read/write IFontData.
escapementReturns or sets the superscript or subscript text.
Value from -100% (subscript) to 100% (superscript).
float.NaN means value is undefined and should be inherited from the Master.
Read/write float.
kerning_minimal_sizeReturns or sets the minimal font size, for which kerning should be switched on.
float.NaN means value is undefined and should be inherited from the Master.
Read/write float.
language_idReturns or sets the Id of a proofing language. Used for checking spelling and grammar.
Read/write str.
alternative_language_idReturns or sets the Id of an alternative language.
Read/write str.
spacingReturns or sets the intercharacter spacing increment.
float.NaN means value is undefined and should be inherited from the Master.
Read/write float.
bookmark_idReturns or sets bookmark identifier.
Read/write str.
smart_tag_cleanDetermines whether the smart tag should be cleaned. No inheritance applied.
Read/write bool.
hyperlink_clickReturns or sets the hyperlink defined for mouse click.
Read/write IHyperlink.
hyperlink_mouse_overReturns or sets the hyperlink defined for mouse over.
Read/write IHyperlink.
hyperlink_managerHyperlinks manager.
Read-only IHyperlinkManager.
slide
presentation

Methods

MethodDescription
get_effectiveGets effective portion formatting data with the inheritance applied.

Remarks

This class is used to return and manipulate text portion formatting properties defined for the particular portion. This means that no inheritance is applied when getting values so for the majority of cases you will get values meaning “undefined”.

In order to get the effective formatting parameter values including inherited you need to use PortionFormat.get_effective method which returns a IPortionFormatEffectiveData instance.

See Also