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
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.1460.0.47

See Also