GrapeCity MultiRow Windows Forms Documentation
Clone Method (Border)
Example 


Creates a new Border that is a copy of the current Border.
Syntax
Public Shadows Function Clone() As Border
Dim instance As Border
Dim value As Border
 
value = instance.Clone()
public new Border Clone()

Return Value

A new Border that is a copy of this Border.
Example
This example creates a copy of a border with the Clone method.
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(GrapeCity.Win.MultiRow.LineStyle.DashDot, Color.SaddleBrown);
GrapeCity.Win.MultiRow.Border bord1 = bord.Clone();
template1.ColumnHeaders[0].Cells[0].Value = "Column1";
template1.ColumnHeaders[0].Cells[1].Value = "Column2";
template1.ColumnHeaders[0].Cells[2].Value = "Column3";
template1.Row.Cells[0].Style.Border = bord1;
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 5;
gcMultiRow1[1, 2].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(GrapeCity.Win.MultiRow.LineStyle.DashDot, Color.SaddleBrown)
Dim bord1 As GrapeCity.Win.MultiRow.Border = bord.Clone()
template1.ColumnHeaders(0).Cells(0).Value = "Column1"
template1.ColumnHeaders(0).Cells(1).Value = "Column2"
template1.ColumnHeaders(0).Cells(2).Value = "Column3"
template1.Row.Cells(0).Style.Border = bord1
GcMultiRow1.Template = template1
GcMultiRow1.RowCount = 5
GcMultiRow1(1, 2).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

 

 


Copyright © GrapeCity, inc. All rights reserved.