Table of Contents

Class Style

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

Represents style templates for paragraph or character formatting.

public sealed class Style : DocumentObject
Inheritance
object
Style
Inherited Members
Extension Methods

Constructors

Style()

Initializes a new instance of the Style class.

Style(string, string?)

Initializes a new instance of the Style class with name and base style name.

Fields

DefaultParagraphFontName

Name of the default character style.

DefaultParagraphName

Name of the default paragraph style.

Properties

BaseStyle

Gets or sets the name of the base style.

BuiltIn

Indicates whether the style is a predefined (built-in) style.

Comment

Gets or sets a comment associated with this object.

Font

Gets the font of ParagraphFormat. Calling style.Font is just a shortcut to style.ParagraphFormat.Font.

IsReadOnly

Indicates whether the style is read-only.

Name

Gets the name of the style.

ParagraphFormat

Gets the ParagraphFormat. To prevent read-only styles from being modified, a copy of its ParagraphFormat is returned in this case.

Type

Gets the StyleType of the style.

Values

Gets the underlying internal nullable values for the properties of this document object.

Methods

Clone()

Creates a deep copy of this object.

DeepCopy()

Implements the deep copy of the object.

GetBaseStyle()

Get the BaseStyle of the current style.

GetValue(string, GV)

Returns the value with the specified name and value access.