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

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

Definition

Constructors

Initializes a new instance of the CustomCategoryContent class.

C#
public CustomCategoryContent()

Fields

Selected format string dependency property.

C#
public static readonly DependencyProperty SelectedFormatStringProperty

Properties

Category

FormatStringCategory

Gets the category.

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

The category.

Overrides: CategoryContentBase.Category

Gets the format strings.

C#
public ObservableCollection<string> FormatStrings { get; }
Property Value:

The format strings.

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 or sets the selected format string.

C#
public string SelectedFormatString { get; set; }
Property Value:

The selected format string.

Methods

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

C#
public override void OnApplyTemplate()

Called when the cell format value is changed.

C#
protected override void OnCellFormatValueChanged()

Overrides: CategoryContentBase.OnCellFormatValueChanged()

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

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)