Class
CustomCategoryContent

Represents the content of the Custom category of the Number tab.

Definition

Constructors

CustomCategoryContent()

Initializes a new instance of the CustomCategoryContent class.

Declaration

cs-api-definition
public CustomCategoryContent()

Fields

SelectedFormatStringProperty

Selected format string dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedFormatStringProperty

Field Value

DependencyProperty

Properties

Category

Gets the category.

Declaration

cs-api-definition
public override FormatStringCategory Category { get; }

Property Value

FormatStringCategory

The category.

Overrides CategoryContentBase.Category

FormatStrings

Gets the format strings.

Declaration

cs-api-definition
public ObservableCollection<string> FormatStrings { get; }

Property Value

ObservableCollection<string>

The format strings.

Info

Gets the info.

Declaration

cs-api-definition
public override string Info { get; }

Property Value

string

The info.

Overrides CategoryContentBase.Info

InitialFormatString

Gets the initial format string.

Declaration

cs-api-definition
public override string InitialFormatString { get; }

Property Value

string

The initial format string.

Overrides CategoryContentBase.InitialFormatString

SelectedFormatString

Gets or sets the selected format string.

Declaration

cs-api-definition
public string SelectedFormatString { get; set; }

Property Value

string

The selected format string.

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCellFormatValueChanged()

Called when the cell format value is changed.

Declaration

cs-api-definition
protected override void OnCellFormatValueChanged()

Overrides CategoryContentBase.OnCellFormatValueChanged()

OnInitialized(EventArgs)

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

OnWindowClosed()

Called when the window is closed.

Declaration

cs-api-definition
public override void OnWindowClosed()

Overrides CategoryContentBase.OnWindowClosed()

TryApplyFormat(CellValueFormat)

Tries to apply format.

Declaration

cs-api-definition
public override bool TryApplyFormat(CellValueFormat format)

Parameters

format

CellValueFormat

The format.

Returns

bool

The value indicating whether the format was successfully applied.

Overrides CategoryContentBase.TryApplyFormat(CellValueFormat)