Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a

Msdn
System.Drawing.Color
System.Drawing.Color
1System.Drawing.Color
object that represents the color of this border.

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 System.Drawing.Color Color{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property Color() As System.Drawing.Color</p>Color
Remarks

MS Word equivalent: Format menu > Borders and Shading... > Borders tab > Color:

Example
Code Block
csharp
csharp
titleC#
            //--- Get Color
          System.Drawing.Color borderColor = brdr.Color;

          //--- Set Color
          brdr.Color = System.Drawing.Color.Blue;
        
Code Block
vbnet
vbnet
titlevb.net
            '--- Get Color
          Dim borderColor As System.Drawing.Color = brdr.Color

          '--- Set Color
          brdr.Color = System.Drawing.Color.Blue