Table of Contents

Class RichStyleDefinition

Namespace
RichEdit.Core
Assembly
RichEdit.Core.dll

A reusable document-owned style with explicit inheritance.

public sealed record RichStyleDefinition : IEquatable<RichStyleDefinition>
Inheritance
RichStyleDefinition
Implements
Inherited Members

Constructors

RichStyleDefinition(RichStyleId, string, RichStyleKind)

A reusable document-owned style with explicit inheritance.

public RichStyleDefinition(RichStyleId Id, string Name, RichStyleKind Kind)

Parameters

Id RichStyleId
Name string
Kind RichStyleKind

Properties

BasedOn

Gets the optional base style of the same kind.

public RichStyleId? BasedOn { get; init; }

Property Value

RichStyleId?

Character

Gets cascading character properties.

public RichCharacterStyle Character { get; init; }

Property Value

RichCharacterStyle

Id

public RichStyleId Id { get; init; }

Property Value

RichStyleId

Kind

public RichStyleKind Kind { get; init; }

Property Value

RichStyleKind

Name

public string Name { get; init; }

Property Value

string

NextStyle

Gets the paragraph style to use after splitting a paragraph. Null retains this style.

public RichStyleId? NextStyle { get; init; }

Property Value

RichStyleId?

Paragraph

Gets cascading paragraph properties, for paragraph styles.

public RichParagraphStyle Paragraph { get; init; }

Property Value

RichParagraphStyle