Table of Contents

Struct StyleValue<T>

Namespace
RichEdit.Core
Assembly
RichEdit.Core.dll

A typed cascading style value. The default value means inherit.

public readonly record struct StyleValue<T> : IEquatable<StyleValue<T>>

Type Parameters

T
Implements
Inherited Members

Properties

Inherit

Gets an operation that inherits preceding formatting.

public static StyleValue<T> Inherit { get; }

Property Value

StyleValue<T>

Initial

Gets an operation that resets this property to the schema initial value.

public static StyleValue<T> Initial { get; }

Property Value

StyleValue<T>

Kind

Gets the cascade operation.

public StyleValueKind Kind { get; }

Property Value

StyleValueKind

Value

Gets the explicit value, throwing when this operation is inherit or initial.

public T Value { get; }

Property Value

T

Methods

FromValue(T)

Creates an explicit value, preserving false, zero, none, and null distinctly from inheritance.

public static StyleValue<T> FromValue(T value)

Parameters

value T

Returns

StyleValue<T>

Resolve(T, T)

Resolves this operation against inherited and initial values.

public T Resolve(T inherited, T initial)

Parameters

inherited T
initial T

Returns

T

ToString()

Describes the cascade operation without accessing a nonexistent inherited value.

public override string ToString()

Returns

string

Operators

implicit operator StyleValue<T>(T)

Converts a typed value to an explicit cascade value.

public static implicit operator StyleValue<T>(T value)

Parameters

value T

Returns

StyleValue<T>