WebBorderStyle

WebBorderStyle class

Encapsulates the style of web table or cell border.

public class WebBorderStyle

Constructors

Name Description
WebBorderStyle() Default constructor.

Properties

Name Description
BorderColor { get; set; } Gets or sets the color of the border. Please refer to System.Drawing.Color struct.
BorderStyle { get; set; } Gets or sets the style of the border. Please refer to .NET SDK document about System.Web.UI.WebControls.BorderStyle enum.
BorderWidth { get; set; } Gets or sets the width of the border. Please refer to System.Web.UI.WebControls.Unit struct.

Methods

Name Description
CopyFrom(WebBorderStyle) Copies from another style object.
override GetHashCode()

Remarks

Please refer to .NET SDK document for further information about System.Web.UI.WebControls namespace.

Examples

[C#]
	WebCell cell1 = GridWeb1.WebWorksheets[0].Cells["A1"];
	cell1.Style.LeftBorderStyle.BorderColor = System.Drawing.Color.Red;
	cell1.Style.LeftBorderStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid;
	cell1.Style.LeftBorderStyle.BorderWidth = new System.Web.UI.WebControls.Unit(16, System.Web.UI.WebControls.UnitType.Point);

[Visual Basic]
	Dim cell1 As WebCell =  GridWeb1.WebWorksheets(0).Cells("A1")
	cell1.Style.LeftBorderStyle.BorderColor = System.Drawing.Color.Red
	cell1.Style.LeftBorderStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid
	cell1.Style.LeftBorderStyle.BorderWidth = New System.Web.UI.WebControls.Unit(16, System.Web.UI.WebControls.UnitType.Point)

See Also