Defines the field's border.
Get
| C# | SftDateBorderConstants Style = object.BorderStyle; |
| VB.NET | Style = object.BorderStyle As SftDateBorderConstants |
| C++ | enum SftDateBorderConstants Style = object->BorderStyle; enum SftDateBorderConstants Style = object->GetBorderStyle(); |
| C | HRESULT object->get_BorderStyle(enum SftDateBorderConstants* Style); |
Put
| C# | SftDateBorderConstants object.BorderStyle = Style; |
| VB.NET | object.BorderStyle = Style As SftDateBorderConstants |
| C++ | enum SftDateBorderConstants object->BorderStyle = Style; void object->PutBorderStyle(enum SftDateBorderConstants Style); |
| C | HRESULT object->put_BorderStyle(enum SftDateBorderConstants Style); |
object
Style
Defines the field's border.
| Name | Value | Description |
|---|---|---|
| borderSftDateNone | 0 | None |
| borderSftDateFixedSingle | 1 | Thin line |
| borderSftDateFixed3D | 2 | Themed border |
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).
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" });
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"})
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