API Reference
WordParagraphStyleDefinition
Describes a paragraph style without exposing Open XML SDK types.
Inheritance
- Object
- WordParagraphStyleDefinition
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
Constructors
public WordParagraphStyleDefinition(String styleId) #Creates a paragraph style definition.
Parameters
- styleId System.String
- Identifier stored on paragraphs that use the style.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String StyleId { get; } #Gets the identifier stored on paragraphs that use the style.
public String Name { get; set; } #Gets or sets the friendly style name.
public String BasedOnStyleId { get; set; } #Gets or sets the base paragraph style identifier.
public String NextStyleId { get; set; } #Gets or sets the style identifier used by the following paragraph.
public String FontName { get; set; } #Gets or sets the font family.
public Nullable<Double> FontSizePoints { get; set; } #Gets or sets the font size in points.
public String ColorHex { get; set; } #Gets or sets the six-digit RGB text color.
public Nullable<Boolean> Bold { get; set; } #Gets or sets whether text is bold.
public Nullable<Boolean> Italic { get; set; } #Gets or sets whether text is italic.
public Nullable<WordParagraphAlignment> Alignment { get; set; } #Gets or sets paragraph alignment.
public Nullable<Int32> LeftIndentTwips { get; set; } #Gets or sets the left indentation in twentieths of a point.
public Nullable<Int32> SpacingBeforeTwips { get; set; } #Gets or sets spacing before the paragraph in twentieths of a point.
public Nullable<Int32> SpacingAfterTwips { get; set; } #Gets or sets spacing after the paragraph in twentieths of a point.
public Boolean IsDefault { get; set; } #Gets or sets whether this is the default paragraph style.
public Boolean IsPrimary { get; set; } #Gets or sets whether Word presents this style as a primary style.