ParagraphFormat Class

This class contains the paragraph formatting properties. Unlike IParagraphFormatEffectiveData, all properties of this class are writeable.
Inheritance Hierarchy

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 22.5.0.0 (22.5)
Syntax
public class ParagraphFormat : PVIObject, 
	IParagraphFormat, IChartParagraphFormat

The ParagraphFormat type exposes the following members.

Constructors
  NameDescription
Public methodParagraphFormat
Initializes a new instance of ParagraphFormat class.
Properties
  NameDescription
Public propertyAlignment
Returns or sets the text alignment in a paragraph with no inheritance. Read/write TextAlignment.
Public propertyAsIPresentationComponent
Allows to get base IPresentationComponent interface. Read-only IPresentationComponent.
(Inherited from PVIObject.)
Public propertyDefaultTabSize
Returns or sets default tabulation size with no inheritance. Read/write Single.
Public propertyEastAsianLineBreak
Determines whether the East Asian line break is used in a paragraph. No inheritance applied. Read/write NullableBool.
Public propertyFontAlignment
Returns or sets a font alignment in a paragraph with no inheritance. Read/write FontAlignment.
Public propertyHangingPunctuation
Determines whether the hanging punctuation is used in a paragraph. No inheritance applied. Read/write NullableBool.
Public propertyIndent
Returns or sets paragraph First Line Indent/Hanging Indent with no inheritance. Hanging Indent can be defined with negative values. Read/write Single.
Public propertyLatinLineBreak
Determines whether the Latin line break is used in a paragraph. No inheritance applied. Read/write NullableBool.
Public propertyMarginLeft
Returns or sets the left margin in a paragraph with no inheritance. Read/write Single.
Public propertyMarginRight
Returns or sets the right margin in a paragraph with no inheritance. Read/write Single.
Public propertyRightToLeft
Determines whether the Right to Left writing is used in a paragraph. No inheritance applied. Read/write NullableBool.
Public propertySpaceAfter
Returns or sets the amount of space after the last line in a paragraph with no inheritance. A positive value specifies the percentage of the font size that the white space should be. A negative value specifies the size of the white space in point size. Read/write Single.
Public propertySpaceBefore
Returns or sets the amount of space before the first line in a paragraph with no inheritance. A positive value specifies the percentage of the font size that the white space should be. A negative value specifies the size of the white space in point size. Read/write Single.
Public propertySpaceWithin
Returns or sets the amount of space between base lines in a paragraph. Positive value means percentage, negative - size in points. No inheritance applied. Read/write Single.
Public propertyTabs
Returns tabulations of a paragraph. No inheritance applied. Read-only ITabCollection.
Methods
  NameDescription
Public methodEquals
Compares with specified object.
(Inherited from PVIObject.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodCode exampleGetEffective
Gets effective paragraph formatting data with the inheritance applied.
Public methodGetHashCode
Returns hash code.
(Inherited from PVIObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Remarks

This class is used to return and manipulate paragraph formatting properties defined for the particular paragraph. 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 IParagraphFormatEffectiveData instance.

See Also