Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.Controls.v3.6 Assembly / Xceed.SmartUI.Controls.StatusBar Namespace / DateTimePanel Class / Format Property


In This Topic
    Format Property
    In This Topic
    Gets or sets a string that defines the culturally appropriate format of displaying dates and times.
    Syntax
    'Declaration
     
    <CategoryAttribute("Appearance")>
    <DefaultValueAttribute("m")>
    <DescriptionAttribute("A string that defines the culturally appropriate format of displaying dates and times.")>
    <TypeConverterAttribute("Xceed.SmartUI.Design.DateTimeFormatConverter, Xceed.SmartUI.v3.6.Design, Version=3.6.25208.5768, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")>
    <BrowsableAttribute(True)>
    <MergablePropertyAttribute(True)>
    <LocalizableAttribute(True)>
    Public Property Format As String
    'Usage
     
    Dim instance As DateTimePanel
    Dim value As String
     
    instance.Format = value
     
    value = instance.Format
    [Category("Appearance")]
    [DefaultValue("m")]
    [Description("A string that defines the culturally appropriate format of displaying dates and times.")]
    [TypeConverter("Xceed.SmartUI.Design.DateTimeFormatConverter, Xceed.SmartUI.v3.6.Design, Version=3.6.25208.5768, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")]
    [Browsable(true)]
    [MergableProperty(true)]
    [Localizable(true)]
    public string Format {get; set;}

    Property Value

    A string that defines the culturally appropriate format of displaying dates and times.
    Remarks

    For more information, please refer to the Date and Time Format Strings topic in the MSDN help file.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also