Gets or sets the pattern style when drawing the pattern effect of the
Section.
<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.
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
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