Objective Grid for Microsoft® .NET® Reference Guide

OGPen Class

Back to Class Index

This class represents how a grid cell border is drawn.

For a list of all members of this type, see OGPen Members.

System.Object
   OGPen

[Visual Basic]
Public Class OGPen
Implements ICloneable, ISerializable
[C#]
public class OGPen : ICloneable, ISerializable

Remarks

Cell borders are available via the Borders property on a Style object. For example, use the following C# code to set the cell borders for cell 1,1 in a grid to use solid, black borders.

            GridControl1[12, 3].Style.Borders =
              new Stingray.Grid.CellBorders(
                new OGPen(BorderDashStyle.Solid, Color.Black, 1),
                new OGPen(BorderDashStyle.Solid, Color.Black, 1),
                new OGPen(BorderDashStyle.Solid, Color.Black, 1),
                new OGPen(BorderDashStyle.Solid, Color.Black, 1));
            

Requirements

Namespace: Stingray.Grid

Assemblies: Stingray.GridControl80 (in Stingray.GridControl80.dll)
                     Stingray.GridControl90 (in Stingray.GridControl90.dll)
                     Stingray.GridControl10 (in Stingray.GridControl10.dll)

See Also

OGPen Members | Stingray.Grid Namespace