GrapeCity MultiRow Windows Forms Documentation
Border Constructor(Line,Line,Line,Line)
Example 


The Line of the Border for the left side.
The Line of the Border for the top side.
The Line of the Border for the right side.
The Line of the Border for the bottom side.
Initializes a new instance of the Border class using a separate line for each side.
Syntax
Public Function New( _
   ByVal left As Line, _
   ByVal top As Line, _
   ByVal right As Line, _
   ByVal bottom As Line _
)
Dim left As Line
Dim top As Line
Dim right As Line
Dim bottom As Line
 
Dim instance As New Border(left, top, right, bottom)
public Border( 
   Line left,
   Line top,
   Line right,
   Line bottom
)

Parameters

left
The Line of the Border for the left side.
top
The Line of the Border for the top side.
right
The Line of the Border for the right side.
bottom
The Line of the Border for the bottom side.
Example
This example creates a border.
GrapeCity.Win.MultiRow.Template template1 = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(new GrapeCity.Win.MultiRow.Cell[] { new GrapeCity.Win.MultiRow.TextBoxCell(), new GrapeCity.Win.MultiRow.TextBoxCell(), new GrapeCity.Win.MultiRow.TextBoxCell() }, Int32.MaxValue, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader | GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber, 50);
GrapeCity.Win.MultiRow.Border bord = new GrapeCity.Win.MultiRow.Border(new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashDotDot, System.Drawing.Color.Aqua), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Double, System.Drawing.Color.DarkRed), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashed, System.Drawing.Color.Magenta), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.DarkOrange));
template1.ColumnHeaders[0].Cells[0].Value = "Column1";
template1.ColumnHeaders[0].Cells[1].Value = "Column2";
template1.ColumnHeaders[0].Cells[2].Value = "Column3";
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 5;
gcMultiRow1[1, 1].Style.Border = bord;
Dim template1 As GrapeCity.Win.MultiRow.Template = GrapeCity.Win.MultiRow.Template.CreateGridTemplate(New GrapeCity.Win.MultiRow.Cell() {New GrapeCity.Win.MultiRow.TextBoxCell(), New GrapeCity.Win.MultiRow.TextBoxCell(), New GrapeCity.Win.MultiRow.TextBoxCell()}, Int32.MaxValue, GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.ColumnHeader Or GrapeCity.Win.MultiRow.AutoGenerateGridTemplateStyles.RowHeaderAutoNumber, 50)
Dim bord As New GrapeCity.Win.MultiRow.Border(New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashDotDot, System.Drawing.Color.Aqua), New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Double, System.Drawing.Color.DarkRed), New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.MediumDashed, System.Drawing.Color.Magenta), New GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.DarkOrange))
template1.ColumnHeaders(0).Cells(0).Value = "Column1"
template1.ColumnHeaders(0).Cells(1).Value = "Column2"
template1.ColumnHeaders(0).Cells(2).Value = "Column3"
GcMultiRow1.Template = template1
GcMultiRow1.RowCount = 5
GcMultiRow1(1, 1).Style.Border = bord
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Border Class
Border Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.