EmphasisDescriptor Class

Descriptor for an emphasis.

public sealed class EmphasisDescriptor

Constructors

NameDescription
EmphasisDescriptor(char, int, int, bool)Initializes a new instance of the EmphasisDescriptor class.

EmphasisDescriptor(char, int, int, bool)

EmphasisDescriptor.cs

Initializes a new instance of the EmphasisDescriptor class.

public EmphasisDescriptor(char character, int minimumCount, int maximumCount, bool enableWithinWord)

Parameters

character char
The character used for this emphasis.
minimumCount int
The minimum number of character.
maximumCount int
The maximum number of characters.
enableWithinWord bool
if set to true the emphasis can be used inside a word.

Properties

NameDescription
CharacterThe character of this emphasis.
EnableWithinWordThis emphasis can be used within a word.
MaximumCountThe maximum number of character this emphasis is expected to have (must be >=1 and >= minimumCount)
MinimumCountThe minimum number of character this emphasis is expected to have (must be >=1)

The character of this emphasis.

public char Character { get; }

Property value

char

EnableWithinWord

EmphasisDescriptor.cs

This emphasis can be used within a word.

public bool EnableWithinWord { get; }

Property value

bool

The maximum number of character this emphasis is expected to have (must be >=1 and >= minimumCount)

public int MaximumCount { get; }

Property value

int

The minimum number of character this emphasis is expected to have (must be >=1)

public int MinimumCount { get; }

Property value

int