PortionFormat Class

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

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntax
public class PortionFormat : BasePortionFormat, 
	IPortionFormat, IBasePortionFormat, IHyperlinkContainer

The PortionFormat type exposes the following members.

Constructors
  NameDescription
Public methodPortionFormat
Initializes a new instance of PortionFormat class.
Properties
  NameDescription
Public propertyAlternativeLanguageId
Returns or sets the Id of an alternative language. Read/write String.
(Inherited from BasePortionFormat.)
Public propertyBookmarkId
Returns or sets bookmark identifier. Read/write String.
Public propertyComplexScriptFont
Returns or sets the complex script font info. Null means font is undefined and should be inherited from the Master. Read/write IFontData.
(Inherited from BasePortionFormat.)
Public propertyEastAsianFont
Returns or sets the East Asian font info. Null means font is undefined and should be inherited from the Master. Read/write IFontData.
(Inherited from BasePortionFormat.)
Public propertyEffectFormat
Returns the text EffectFormat properties. No inheritance applied. Read-only IEffectFormat.
(Inherited from BasePortionFormat.)
Public propertyEscapement
Returns 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 Single.
(Inherited from BasePortionFormat.)
Public propertyFillFormat
Returns the text FillFormat properties. No inheritance applied. Read-only IFillFormat.
(Inherited from BasePortionFormat.)
Public propertyFontBold
Determines whether the font is bold. No inheritance applied. Read/write NullableBool.
(Inherited from BasePortionFormat.)
Public propertyFontHeight
Returns or sets the font height of a portion. float.NaN means height is undefined and should be inherited from the Master. Read/write Single.
(Inherited from BasePortionFormat.)
Public propertyFontItalic
Determines whether the font is itallic. No inheritance applied. Read/write NullableBool.
(Inherited from BasePortionFormat.)
Public propertyFontUnderline
Returns or sets the text underline type. No inheritance applied. Read/write TextUnderlineType.
(Inherited from BasePortionFormat.)
Public propertyHighlightColor
Returns the color used to highlight a text. No inheritance applied. Read-only IColorFormat.
(Inherited from BasePortionFormat.)
Public propertyHyperlinkClick
Returns or sets the hyperlink defined for mouse click. Read/write IHyperlink.
Public propertyHyperlinkManager
Hyperlinks manager. Read-only IHyperlinkManager.
Public propertyHyperlinkMouseOver
Returns or sets the hyperlink defined for mouse over. Read/write IHyperlink.
Public propertyIsHardUnderlineFill
Determines whether the underline style has own FillFormat properties or inherits it from the FillFormat properties of the text. Read/write NullableBool.
(Inherited from BasePortionFormat.)
Public propertyIsHardUnderlineLine
Determines whether the underline style has own LineFormat properties or inherits it from the LineFormat properties of the text. Read/write NullableBool.
(Inherited from BasePortionFormat.)
Public propertyKerningMinimalSize
Returns 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 Single.
(Inherited from BasePortionFormat.)
Public propertyKumimoji
Determines whether the numbers should ignore text eastern language-specific vertical text layout. No inheritance applied. Read/write NullableBool.
(Inherited from BasePortionFormat.)
Public propertyLanguageId
Returns or sets the Id of a proofing language. Used for checking spelling and grammar. Read/write String.
(Inherited from BasePortionFormat.)
Public propertyLatinFont
Returns or sets the Latin font info. Null means font is undefined and should be inherited from the Master. Read/write IFontData.
(Inherited from BasePortionFormat.)
Public propertyLineFormat
Returns the LineFormat properties for text outlining. No inheritance applied. Read-only ILineFormat.
(Inherited from BasePortionFormat.)
Public propertyNormaliseHeight
Determines whether the height of a text should be normalized. No inheritance applied. Read/write NullableBool.
(Inherited from BasePortionFormat.)
Public propertyProofDisabled
Determines whether the text shouldn't be proofed. No inheritance applied. Read/write NullableBool.
(Inherited from BasePortionFormat.)
Public propertySmartTagClean
Determines whether the smart tag should be cleaned. No inheritance applied. Read/write Boolean.
Public propertySpacing
Returns or sets the intercharacter spacing increment. float.NaN means value is undefined and should be inherited from the Master. Read/write Single.
(Inherited from BasePortionFormat.)
Public propertyStrikethroughType
Returns or sets the strikethrough type of a text. No inheritance applied. Read/write TextStrikethroughType.
(Inherited from BasePortionFormat.)
Public propertySymbolFont
Returns or sets the symbolic font info. Null means font is undefined and should be inherited from the Master. Read/write IFontData.
(Inherited from BasePortionFormat.)
Public propertyTextCapType
Returns or sets the type of text capitalization. No inheritance applied. Read/write TextCapType.
(Inherited from BasePortionFormat.)
Public propertyUnderlineFillFormat
Returns the underline line FillFormat properties. No inheritance applied. Read-only IFillFormat.
(Inherited from BasePortionFormat.)
Public propertyUnderlineLineFormat
Returns the LineFormat properties used to outline underline line. No inheritance applied. Read-only ILineFormat.
(Inherited from BasePortionFormat.)
Methods
  NameDescription
Public methodEquals
Compares with specified object.
(Inherited from PVIObject.)
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleGetEffective
Gets effective portion formatting data with the inheritance applied.
Public methodGetHashCode
Returns hash code.
(Inherited from PVIObject.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
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 GetEffective method which returns a PortionFormatEffectiveData instance.

See Also