Xceed Grid for WinForms v4.3 Documentation
Margins Property (WinCalendar)


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinCalendar Class : Margins Property
Gets or sets the width of the margins, in pixels, of the calendar.
Syntax
'Declaration
 
<DescriptionAttribute("The width of the margins, in pixels, of the calendar.")>

<CategoryAttribute("Appearance")>

Public Property Margins As Margins
'Usage
 
Dim instance As WinCalendar

Dim value As Margins

 

instance.Margins = value

 

value = instance.Margins
[Description("The width of the margins, in pixels, of the calendar.")]

[Category("Appearance")]

public Margins Margins {get; set;}

Property Value

A value representing the width of the margins, in pixels, of the calendar. By default, DefaultMargins.
Remarks

By default, the top, right and left margins are set to 1 pixel. The bottom margin is set to 17 pixels since, initially, it contains the "Today" and "None" buttons. In the image below, all four of the calendar's margins are set to 10 pixels and are represented by the grayed section.

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

Reference

WinCalendar Class
WinCalendar Members