Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Sets or returns a Pattern applied to cells.


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

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

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

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

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

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets or returns a [Pattern] applied to cells.{excerpt}
{signature:C#}
 public Pattern Pattern{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property Pattern() As Pattern
Remarks
By
{signature}
{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.
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle