Syncfusion.Grid.Windows
Members  Example 


GridMarginsInfo Class

Provides a Syncfusion.Styles.StyleInfoSubObjectBase object for margins in a cell. Each margin side of the cell can be configured individually with a GridMargins value. Margin sides that have not been initialized will inherit default values from a base style.
Object Model
GridMarginsInfo ClassGridMarginsInfo ClassGridMarginsInfo ClassStyleInfoIdentityBase ClassStyleInfoBase ClassStyleInfoProperty ClassStyleInfoStore ClassStyleInfoSubObjectIdentity Class
Syntax
'Declaration
 
<TypeConverterAttribute(Syncfusion.Styles.StyleInfoBaseConverter)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
Public Class GridMarginsInfo 
   Inherits GridStyleInfoSubObject
   Implements Syncfusion.Styles.IStyleInfo, Syncfusion.Styles.IStyleInfoSubObject 
'Usage
 
Dim instance As GridMarginsInfo
[TypeConverter(Syncfusion.Styles.StyleInfoBaseConverter)]
[RefreshProperties(RefreshProperties.Repaint)]
public class GridMarginsInfo : GridStyleInfoSubObject, Syncfusion.Styles.IStyleInfo, Syncfusion.Styles.IStyleInfoSubObject  
Example
The following code changes margin information for cells:
GridMargins margins = new GridMargins(1, 1, 2, 2);
model[rowIndex, colIndex].Margins = new GridMarginsInfo(margins);
model[rowIndex, colIndex+1].Margins.Right = 2;
model[rowIndex, colIndex+1].Margins.Left = 2;
Inheritance Hierarchy

System.Object
   Syncfusion.Design.ShouldSerializeBasedPersisterType
      Syncfusion.Styles.StyleInfoBase
         Syncfusion.Styles.StyleInfoSubObjectBase
            Syncfusion.Windows.Forms.Grid.GridStyleInfoSubObject
               Syncfusion.Windows.Forms.Grid.GridMarginsInfo

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also