HeaderPane
Main
Hide
Share Link
Print

BorderStyle Property, SftDate Object

Defines the field's border.

Syntax

Get

C#SftDateBorderConstants Style = object.BorderStyle;
VB.NETStyle = object.BorderStyle As SftDateBorderConstants
C++enum SftDateBorderConstants Style = object->BorderStyle;
enum SftDateBorderConstants Style = object->GetBorderStyle();
CHRESULT object->get_BorderStyle(enum SftDateBorderConstants* Style);

Put

C#SftDateBorderConstants object.BorderStyle = Style;
VB.NETobject.BorderStyle = Style As SftDateBorderConstants
C++enum SftDateBorderConstants object->BorderStyle = Style;
void object->PutBorderStyle(enum SftDateBorderConstants Style);
CHRESULT object->put_BorderStyle(enum SftDateBorderConstants Style);

object

A SftDate object.

Style

Defines the field's border.

NameValueDescription
borderSftDateNone0None
borderSftDateFixedSingle1Thin line
borderSftDateFixed3D2Themed border

Comments

The BorderStyle property defines the border a date field control draws. The default is borderSftDateFixedSingle. p borderSftDateFixed3D draws the date picker border of the current theme, or a sunken 3D border without themes (UseThemes). The color of the thin border is defined using BorderColor. The border changes the preferred height of the field (PreferredHeight).

Examples

C# View entire sample code

            comboCulture.SelectedIndex = 0;
            comboDarkMode.Items.AddRange(new object[] { "Off", "On", "Auto" });
            comboDarkMode.SelectedIndex = (int)sftCalendar.DarkMode;
            comboHighContrast.Items.AddRange(new object[] { "Off", "On", "Auto" });
            comboHighContrast.SelectedIndex = (int)sftCalendar.HighContrastMode;
            comboButtons.Items.AddRange(new object[] { "Dropdown", "Up/down", "Dropdown, up/down", "None" });
            comboButtons.SelectedIndex = (int)fieldDate.Buttons;
            comboBorder.Items.AddRange(new object[] { "Single", "3D", "None" });
            comboBorder.SelectedIndex = Math.Max(0, Array.IndexOf(borderStyles, fieldDate.BorderStyle));
            comboAlignment.Items.AddRange(new object[] { "Near", "Far" });
            comboAlignment.SelectedIndex = (int)fieldDate.DropDownAlignment;
            comboAcross.Items.AddRange(new object[] { "1", "2", "3" });
            comboAcross.SelectedIndex = cal.MonthsAcross - 1;
            comboDown.Items.AddRange(new object[] { "1", "2" });
            comboDown.SelectedIndex = cal.MonthsDown - 1;
            comboWeekNumbers.Items.AddRange(new object[] { "None", "Culture rule", "ISO 8601" });

VB.NET View entire sample code

        comboCulture.SelectedIndex = 0
        comboDarkMode.Items.AddRange(New Object() {"Off", "On", "Auto"})
        comboDarkMode.SelectedIndex = CInt(sftCalendar.DarkMode)
        comboHighContrast.Items.AddRange(New Object() {"Off", "On", "Auto"})
        comboHighContrast.SelectedIndex = CInt(sftCalendar.HighContrastMode)
        comboButtons.Items.AddRange(New Object() {"Dropdown", "Up/down", "Dropdown, up/down", "None"})
        comboButtons.SelectedIndex = CInt(fieldDate.Buttons)
        comboBorder.Items.AddRange(New Object() {"Single", "3D", "None"})
        comboBorder.SelectedIndex = Math.Max(0, Array.IndexOf(borderStyles, fieldDate.BorderStyle))
        comboAlignment.Items.AddRange(New Object() {"Near", "Far"})
        comboAlignment.SelectedIndex = CInt(fieldDate.DropDownAlignment)
        comboAcross.Items.AddRange(New Object() {"1", "2", "3"})
        comboAcross.SelectedIndex = cal.MonthsAcross - 1
        comboDown.Items.AddRange(New Object() {"1", "2"})
        comboDown.SelectedIndex = cal.MonthsDown - 1
        comboWeekNumbers.Items.AddRange(New Object() {"None", "Culture rule", "ISO 8601"})

C++ View entire sample code

        ForEachControl([&](auto& ctl) { ctl->HighContrastMode = (SftDateHighContrastConstants) sel; });
        break;
    case IDC_BUTTONS:
        for (int i = 0; i < FIELDS; ++i)
            m_Fields[i]->Buttons = (SftDateButtonsConstants) sel;
        break;
    case IDC_BORDER:
        for (int i = 0; i < FIELDS; ++i)
            m_Fields[i]->BorderStyle = (SftDateBorderConstants) g_borderStyles[sel];
        break;
    case IDC_ALIGNMENT:
        for (int i = 0; i < FIELDS; ++i)
            m_Fields[i]->DropDownAlignment = (SftDateAlignConstants) sel;
        break;
    case IDC_ACROSS:
        m_Calendar->Calendar->MonthsAcross = sel + 1;

See Also SftDate Object | Object Hierarchy | Field Components


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.