'Declaration Public ReadOnly Property ContentPadding As Infragistics.Win.Margins
public Infragistics.Win.Margins ContentPadding {get;}
Note, in the UltraGroupBox this property affects controls that are docked inside of the content area. In the UltraExpandableGroupBox this property affects all controls placed in the UltraExpandableGroupBoxPanel, regardless of their Dock state.
Imports Infragistics.Win Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' UltraGroupBox1 contains UltraOptionSet1, which is docked to Fill. ' If UltraOptionSet1 were not docked, ContentPadding would have no ' effect on it. Me.UltraOptionSet1.Dock = DockStyle.Fill Dim mgns As Margins = Me.UltraGroupBox1.ContentPadding mgns.Left = 10 mgns.Right = 10 mgns.Top = 10 mgns.Bottom = 10 ' UltraExpandableGroupBox1 contains UltraOptionSet2, which is not docked. ' In the UltraExpandableGroupBox the ContentPadding effects both docked ' and undocked child controls. Me.UltraOptionSet2.Dock = DockStyle.None mgns = Me.UltraExpandableGroupBox1.ContentPadding mgns.Left = 15 mgns.Right = 15 mgns.Top = 15 mgns.Bottom = 15 End Sub
using Infragistics.Win; private void Form1_Load(object sender, System.EventArgs e) { // ultraGroupBox1 contains ultraOptionSet1, which is docked to Fill. // If ultraOptionSet1 were not docked, ContentPadding would have no // effect on it. this.ultraOptionSet1.Dock = DockStyle.Fill; Margins mgns = this.ultraGroupBox1.ContentPadding; mgns.Left = 10; mgns.Right = 10; mgns.Top = 10; mgns.Bottom = 10; // ultraExpandableGroupBox1 contains ultraOptionSet2, which is not docked. // In the UltraExpandableGroupBox the ContentPadding effects both docked // and undocked child controls. this.ultraOptionSet2.Dock = DockStyle.None; mgns = this.ultraExpandableGroupBox1.ContentPadding; mgns.Left = 15; mgns.Right = 15; mgns.Top = 15; mgns.Bottom = 15; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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