Table of Contents

Property Format

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Format

Gets or sets the DateTimeFormatInfo used for time formatting.

public DateTimeFormatInfo Format { get; set; }

Property Value

DateTimeFormatInfo

Remarks

The editor uses LongTimePattern to determine the display format. To use a short time format, clone the DateTimeFormatInfo and set LongTimePattern to ShortTimePattern.

The width automatically adjusts when the format changes to accommodate the new pattern.