Class
NumberCategoryContent

Represents the content of the number category of the number tab of the FormatCellsDialog.

Definition

Constructors

NumberCategoryContent()

Initializes a new instance of the NumberCategoryContent class.

Declaration

cs-api-definition
public NumberCategoryContent()

Fields

DecimalPlacesProperty

Decimal places dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DecimalPlacesProperty

Field Value

DependencyProperty

SelectedNumberItemProperty

Selected number item dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedNumberItemProperty

Field Value

DependencyProperty

UseThousandSeparatorProperty

Use thousand separator dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty UseThousandSeparatorProperty

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

DecimalPlaces

Gets or sets the decimal places.

Declaration

cs-api-definition
public int DecimalPlaces { get; set; }

Property Value

int

The decimal places.

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

NumberItems

Gets the number items.

Declaration

cs-api-definition
public ObservableCollection<NumberItem> NumberItems { get; }

Property Value

ObservableCollection<NumberItem>

The number items.

SelectedNumberItem

Gets or sets the selected number item.

Declaration

cs-api-definition
public NumberItem SelectedNumberItem { get; set; }

Property Value

NumberItem

The selected number item.

UseThousandSeparator

Gets or sets a value indicating if a thousand separator will be used.

Declaration

cs-api-definition
public bool UseThousandSeparator { get; set; }

Property Value

bool

The value indicating if a thousand separator will be used.

Methods

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

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

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

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)