ParagraphFormat

ParagraphFormat class

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

public sealed class ParagraphFormat : PVIObject, IChartParagraphFormat, IParagraphFormat

Constructors

NameDescription
ParagraphFormat()Initializes a new instance of ParagraphFormat class.

Properties

NameDescription
Alignment { get; set; }Returns or sets the text alignment in a paragraph with no inheritance. Read/write TextAlignment.
AsIPresentationComponent { get; }Allows to get base IPresentationComponent interface. Read-only IPresentationComponent.
DefaultTabSize { get; set; }Returns or sets default tabulation size with no inheritance. Read/write Single.
EastAsianLineBreak { get; set; }Determines whether the East Asian line break is used in a paragraph. No inheritance applied. Read/write NullableBool.
FontAlignment { get; set; }Returns or sets a font alignment in a paragraph with no inheritance. Read/write FontAlignment.
HangingPunctuation { get; set; }Determines whether the hanging punctuation is used in a paragraph. No inheritance applied. Read/write NullableBool.
Indent { get; set; }Returns or sets paragraph First Line Indent/Hanging Indent with no inheritance. Hanging Indent can be defined with negative values. Read/write Single.
LatinLineBreak { get; set; }Determines whether the Latin line break is used in a paragraph. No inheritance applied. Read/write NullableBool.
MarginLeft { get; set; }Returns or sets the left margin in a paragraph with no inheritance. Read/write Single.
MarginRight { get; set; }Returns or sets the right margin in a paragraph with no inheritance. Read/write Single.
RightToLeft { get; set; }Determines whether the Right to Left writing is used in a paragraph. No inheritance applied. Read/write NullableBool.
SpaceAfter { get; set; }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.
SpaceBefore { get; set; }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.
SpaceWithin { get; set; }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.
Tabs { get; }Returns tabulations of a paragraph. No inheritance applied. Read-only ITabCollection.

Methods

NameDescription
override Equals(object)Compares with specified object.
GetEffective()Gets effective paragraph formatting data with the inheritance applied.
override GetHashCode()Returns hash code.

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