Enum SetBorderPosition

SetBorderPosition enumeration

Represents the border position to be set of a cells range.

public enum SetBorderPosition

Values

NameValueDescription
Top0Top border
Bottom1Bottom border
Left2Left border
Right3Right border
HorizontalMiddle4Bottom border
VerticalMiddle5HorizontalMiddle borders
Outline6VerticalMiddle borders
Cross7Cross borders
None8No borders

Examples

[C#]
    GridWeb GridWeb1=new GridWeb();
	GridWeb1.WorkSheets[0].Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, GridWeb1.WorkSheets[0].Cells[0, 0].Style.LeftBorderStyle);

[VB]
	GridWeb1.WorkSheets(0).Cells.SetBorders(0, 0, 5, 8, SetBorderPosition.Outline, GridWeb1.WorkSheets[0].Cells[0, 0].Style.LeftBorderStyle)

See Also