[]
        
(Showing Draft Content)

FarPoint.Win.Spread.GridLine.-ctor

GridLine Constructor

GridLine()

Creates a new grid line.

Declaration
public GridLine()
Public Sub New()

GridLine(GridLineType)

Creates a new grid line of the specified line type.

Declaration
public GridLine(GridLineType type)
Public Sub New(type As GridLineType)
Parameters
Type Name Description
GridLineType type

Type of grid line

GridLine(GridLineType, Color)

Creates a new grid line of the specified line type and color.

Declaration
public GridLine(GridLineType type, Color color)
Public Sub New(type As GridLineType, color As Color)
Parameters
Type Name Description
GridLineType type

Type of grid line

Color color

Color of grid line

GridLine(GridLineType, Color, Color, Color)

Creates a new grid line of the specified line type and colors.

Declaration
public GridLine(GridLineType type, Color color, Color highlightColor, Color shadowColor)
Public Sub New(type As GridLineType, color As Color, highlightColor As Color, shadowColor As Color)
Parameters
Type Name Description
GridLineType type

Type of grid line

Color color

Color of grid line

Color highlightColor

Highlight color for the grid line

Color shadowColor

Shadow color for the grid line

GridLine(GridLineType, Color, Color, Color, int)

Creates a new grid line of the specified line type, colors, and width.

Declaration
public GridLine(GridLineType type, Color color, Color highlightColor, Color shadowColor, int width)
Public Sub New(type As GridLineType, color As Color, highlightColor As Color, shadowColor As Color, width As Integer)
Parameters
Type Name Description
GridLineType type

Type of grid line

Color color

Color of grid line

Color highlightColor

Highlight color for the grid line

Color shadowColor

Shadow color for the grid line

int width

Width of grid line

Exceptions
Type Condition
InvalidEnumArgumentException

The type is not one of the BorderStyle values.

ArgumentOutOfRangeException

The width is less that -1.

GridLine(SerializationInfo, StreamingContext)

Represents the grid lines.

Declaration
public GridLine(SerializationInfo info, StreamingContext context)
Public Sub New(info As SerializationInfo, context As StreamingContext)
Parameters
Type Name Description
SerializationInfo info

SerializationInfo object that holds the serialized object data

StreamingContext context

StreamingContext object with contexual information about the source or destination of the serialization