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

} object that represents the color of this border.{excerpt} {signature:C#}

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

Signature
C#
C#
public System.Drawing.Color Color{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property Color() As System.Drawing.Color
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

Format

menu

>

Borders

and

Shading...

>

Borders

tab

>

Color:

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

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

          //--- Set Color
          brdr.Color = System.Drawing.Color.Blue;
        
{code} {code:vbnet|title=
Code Block
vbnet
vbnet
titlevb.net
}
          
'--- Get Color
          Dim borderColor As System.Drawing.Color = brdr.Color

          '--- Set Color
          brdr.Color = System.Drawing.Color.Blue
        
{code} {example}