GrapeCity MultiRow Windows Forms Documentation
PatternStyle Property (Section)
Example 


Gets or sets the pattern style when drawing the pattern effect of the Section.
Syntax
<FeatureAttribute(Name="Section", Version="V5.0")>
<SRCategoryAttribute("Appearance")>
<DefaultValueAttribute()>
<SRDescriptionAttribute("Indicates the pattern style of the Section.")>
Public Property PatternStyle As MultiRowHatchStyle
Dim instance As Section
Dim value As MultiRowHatchStyle
 
instance.PatternStyle = value
 
value = instance.PatternStyle
[Feature(Name="Section", Version="V5.0")]
[SRCategory("Appearance")]
[DefaultValue()]
[SRDescription("Indicates the pattern style of the Section.")]
public MultiRowHatchStyle PatternStyle {get; set;}

Property Value

One of the MultiRowHatchStyle values that indicates the pattern style. The default is MultiRowHatchStyle.None.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe specified value is not one of the MultiRowHatchStyle values.
Remarks
When you set this property to MultiRowHatchStyle.Inherit, since the Section's parent appearance does not support the pattern style, the Section's actual pattern effect is MultiRowHatchStyle.None.
Example
The following code example shows how to use PatternColor and PatternStyle to create a patten effect. This code example is part of a larger example provided for the Section class.
void setPattenButton_Click(object sender, EventArgs e)
        {
            Template template = Template.Default;

            Section section = template.Row;

            // The PatternColor, PatternStyle should be use together
            section.PatternColor = Color.Red;
            section.PatternStyle = MultiRowHatchStyle.BackwardDiagonal;

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

        Dim section As Section = template1.Row

        ' The PatternColor, PatternStyle should be use together
        section.PatternColor = Color.Red
        section.PatternStyle = MultiRowHatchStyle.BackwardDiagonal

        ' Reload template.
        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

Section Class
Section Members
PatternColor Property

 

 


Copyright © GrapeCity, inc. All rights reserved.