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


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

Parameters

left
The BorderLine for the left side.
top
The BorderLine for the top side.
right
The BorderLine for the right side.
bottom
The BorderLine for the bottom side.
diagonalUp
The BorderLine for the diagonal up side.
diagonalDown
The BorderLine for the diagonal down 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), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.DarkOrange), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.Blue));
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), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.DarkOrange), new GrapeCity.Win.MultiRow.Line(GrapeCity.Win.MultiRow.LineStyle.Medium, System.Drawing.Color.Blue))
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.