Gets the color of the face for a compound border.
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Property FaceColor As Color |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As CompoundBorder
Dim value As Color
value = instance.FaceColor |
C# | |
---|
public Color FaceColor {get;} |
Property Value
Color object containing the color of the face
Remarks
Example
This example returns the face color of the border.
C# | Copy Code |
---|
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed);
FarPoint.Win.ComplexBorderSide side1 = new FarPoint.Win.ComplexBorderSide();
FarPoint.Win.ComplexBorder lb = new FarPoint.Win.ComplexBorder(side);
FarPoint.Win.ComplexBorder tb = new FarPoint.Win.ComplexBorder(side1);
FarPoint.Win.CompoundBorder cb = new FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red);
Color c = cb.FaceColor;
MessageBox.Show("The face color of the border is " + c.ToString() + "."); |
Visual Basic | Copy Code |
---|
Dim side As New FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed)
Dim side1 As New FarPoint.Win.ComplexBorderSide
Dim lb As New FarPoint.Win.ComplexBorder(side)
Dim tb As New FarPoint.Win.ComplexBorder(side1)
Dim cb As New FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red)
Dim c As Color = cb.FaceColor
MessageBox.Show("The face color of the border is " + c.ToString() & ".") |
Requirements
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
See Also