GrapeCity MultiRow Windows Forms Documentation
DiagonalUp Property
Example 


Gets or sets the up diagonal line of the Border.
Syntax
<RefreshPropertiesAttribute(RefreshProperties.All)>
Public Property DiagonalUp As Line
Dim instance As Border
Dim value As Line
 
instance.DiagonalUp = value
 
value = instance.DiagonalUp
[RefreshProperties(RefreshProperties.All)]
public Line DiagonalUp {get; set;}

Property Value

A Line value for the up diagonal line of the Border.
Example
The following code example shows how to set the DiagonalUp border style and color. This example is part of a larger example available for the Border class.
void setCrossBorderToCell_Click(object sender, EventArgs e)
        {
            Template template1 = gcMultiRow1.Template;

            Row row = template1.Row;

            //Use this constructor to set the outline regular rectangle border.
            Border normalBorder1 = new Border(LineStyle.Medium, Color.Red);

            normalBorder1.DiagonalDown = new Line(LineStyle.Medium, Color.Red);
            normalBorder1.DiagonalUp = new Line(LineStyle.Medium, Color.Red);

            row.Cells[0].Style.Border = normalBorder1;

            // Reload template1.
            this.gcMultiRow1.Template = template1;
        }
Private Sub setCrossBorderToCell_Click(ByVal sender As Object, ByVal e As EventArgs) Handles 
setCrossBorderToCell.Click
        Dim template1 As Template = gcMultiRow1.Template

        Dim row As Row = template1.Row

        'Use this constructor to set the outline regular rectangle border.
        Dim normalBorder1 As New Border(LineStyle.Medium, Color.Red)

        normalBorder1.DiagonalDown = New Line(LineStyle.Medium, Color.Red)
        normalBorder1.DiagonalUp = New Line(LineStyle.Medium, Color.Red)
        row.Cells(0).Style.Border = normalBorder1

        ' Reload template1.
        Me.gcMultiRow1.Template = template1
    End Sub
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
Outline Property
Top Property
Bottom Property
Left Property
Right Property
DiagonalDown Property

 

 


Copyright © GrapeCity, inc. All rights reserved.