Class
DateCategoryContent

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

Definition

Constructors

DateCategoryContent()

Initializes a new instance of the DateCategoryContent class.

Declaration

cs-api-definition
public DateCategoryContent()

Fields

SelectedCultureProperty

Selected culture dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedCultureProperty

Field Value

DependencyProperty

SelectedDateTimeItemProperty

Selected date time item dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedDateTimeItemProperty

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

CultureInfos

Gets the culture infos.

Declaration

cs-api-definition
public IEnumerable<CultureInfo> CultureInfos { get; }

Property Value

IEnumerable<CultureInfo>

The culture infos.

DateTimeItems

Gets the date time items.

Declaration

cs-api-definition
public ObservableCollection<DateTimeItem> DateTimeItems { get; }

Property Value

ObservableCollection<DateTimeItem>

The date time items.

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

SelectedCulture

Gets or sets the selected culture.

Declaration

cs-api-definition
public CultureInfo SelectedCulture { get; set; }

Property Value

CultureInfo

The selected culture.

SelectedDateTimeItem

Gets or sets the selected date time item.

Declaration

cs-api-definition
public DateTimeItem SelectedDateTimeItem { get; set; }

Property Value

DateTimeItem

The selected date time item.

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)