GrapeCity MultiRow Windows Forms Documentation
UseSmoothingLine Property (RoundedBorder)
Example 


Gets or sets a value that indicates whether to use line smoothing to enhance rendering quality.
Syntax
<DefaultValueAttribute()>
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Property UseSmoothingLine As Boolean
Dim instance As RoundedBorder
Dim value As Boolean
 
instance.UseSmoothingLine = value
 
value = instance.UseSmoothingLine
[DefaultValue()]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public bool UseSmoothingLine {get; set;}

Property Value

true if using line smoothing to enhance rendering quality; otherwise, false. The default is false.
Remarks
The smoothing mode specifies whether the sides and corners use smoothing (also called antialiasing) when rendering to the screen. You can get smooth rounded corners by setting it to true, but the line edges will be blurry.
Example
The following code example shows how to set the UseSmoothingLine property. This example is part of a larger example available for the Border class.
RoundedBorder smoothingLineRoundedBorder = new RoundedBorder(LineStyle.Medium, Color.Blue, 0.3f);
        void setRoundedBorderUseSmoothingLine_Click(object sender, EventArgs e)
        {
            Template template1 = gcMultiRow1.Template;
            Row row = template1.Row;
            
            if (smoothingLineRoundedBorder.UseSmoothingLine == false)
            {
                //If UseSmoothingLine is true, the corner line has a good effect.
                smoothingLineRoundedBorder.UseSmoothingLine = true;
            }
            else
            {
                smoothingLineRoundedBorder.UseSmoothingLine = false;
            }
            row.Cells[0].Style.Border = smoothingLineRoundedBorder;

            // Reload template1.
            this.gcMultiRow1.Template = template1;
        }
Private smoothingLineRoundedBorder As New RoundedBorder(LineStyle.Medium, Color.Blue, 0.3F)
    Private Sub setRoundedBorderUseSmoothingLine_Click(ByVal sender As Object, ByVal e As EventArgs) Handles 
setRoundedBorderUseSmoothingLine.Click
        Dim template1 As Template = gcMultiRow1.Template
        Dim row As Row = template1.Row

        If smoothingLineRoundedBorder.UseSmoothingLine = False Then
            'If UseSmoothingLine is true, the corner line has a good effect.
            smoothingLineRoundedBorder.UseSmoothingLine = True
        Else
            smoothingLineRoundedBorder.UseSmoothingLine = False
        End If
        row.Cells(0).Style.Border = smoothingLineRoundedBorder

        ' 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

RoundedBorder Class
RoundedBorder Members

 

 


Copyright © GrapeCity, inc. All rights reserved.