Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Sets or returns a Pattern applied to cells.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public Pattern Pattern{ get; set; }
{signature}{signature:</pre></td></tr></tbody></table>
} Public
Signature
vb.net
vb.net

<p>Public Property Pattern() As Pattern
{signature}
{remarks}
By default, an unformatted cell will have a pattern of type Pattern</p>
Remarks

By default, an unformatted cell will have a pattern of type Pattern.None.

Setting

the

pattern

to

a

different

value

will

cause

the

cell's

fill

to

have

a

pattern

applied.

If

there

is

no

pattern,

the

[

Style.BackgroundColor

]

determines

the

color

of

the

cell.

If

there

is

a

pattern,

then

the

[

Style.BackgroundColor

]

will

specify

the

cell's

background

color,

and

[

Style.ForegroundColor

]

will

specify

the

cell's

pattern

color.

{remarks} {example}{code:csharp|title=C#}

Example
Code Block
csharp
csharp
titleC#


          //--- Get Pattern
          Pattern ptn = c.Style.Pattern;

          //--- Set Pattern
          styl.Pattern = Pattern.DiagonalCrosshatch;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Get Pattern
          Dim ptn As Pattern = c.Style.Pattern

          '--- Set Pattern
          styl.Pattern = Patter.DiagonalCrosshatch
        
{code} {example}