New to Telerik UI for WPFStart a free 30-day trial

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

Definition

Constructors

Initializes a new instance of the NumberCategoryContent class.

C#
public NumberCategoryContent()

Fields

DecimalPlacesProperty

DependencyProperty

Decimal places dependency property.

C#
public static readonly DependencyProperty DecimalPlacesProperty

SelectedNumberItemProperty

DependencyProperty

Selected number item dependency property.

C#
public static readonly DependencyProperty SelectedNumberItemProperty

Use thousand separator dependency property.

C#
public static readonly DependencyProperty UseThousandSeparatorProperty

Properties

Category

FormatStringCategory

Gets the category.

C#
public override FormatStringCategory Category { get; }
Property Value:

The category.

Overrides: CategoryContentBase.Category

Gets or sets the decimal places.

C#
public int DecimalPlaces { get; set; }
Property Value:

The decimal places.

Gets the info.

C#
public override string Info { get; }
Property Value:

The info.

Overrides: CategoryContentBase.Info

Gets the initial format string.

C#
public override string InitialFormatString { get; }
Property Value:

The initial format string.

Overrides: CategoryContentBase.InitialFormatString

Gets the number items.

C#
public ObservableCollection<NumberItem> NumberItems { get; }
Property Value:

The number items.

Gets or sets the selected number item.

C#
public NumberItem SelectedNumberItem { get; set; }
Property Value:

The selected number item.

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

C#
public bool UseThousandSeparator { get; set; }
Property Value:

The value indicating if a thousand separator will be used.

Methods

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the window is closed.

C#
public override void OnWindowClosed()

Overrides: CategoryContentBase.OnWindowClosed()

Tries to apply format.

C#
public override bool TryApplyFormat(CellValueFormat format)
Parameters:formatCellValueFormat

The format.

Returns:

bool

The value indicating whether the format was successfully applied.

Overrides: CategoryContentBase.TryApplyFormat(CellValueFormat)