Intersoft ClientUI Documentation
TopBorderBrush Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > TableCell Class : TopBorderBrush Property






Gets or sets a Brush to use when painting the element's top border.

Syntax

Visual Basic (Declaration) 
Public Property TopBorderBrush As Brush
Visual Basic (Usage)Copy Code
Dim instance As TableCell
Dim value As Brush
 
instance.TopBorderBrush = value
 
value = instance.TopBorderBrush
C# 
public Brush TopBorderBrush {get; set;}
Delphi 
public read-write property TopBorderBrush: Brush; 
JScript 
public function get,set TopBorderBrush : Brush
Managed Extensions for C++ 
public: __property Brush* get_TopBorderBrush();
public: __property void set_TopBorderBrush( 
   Brush* value
);
C++/CLI 
public:
property Brush^ TopBorderBrush {
   Brush^ get();
   void set (    Brush^ value);
}

Remarks

Besides global formatting, you can specify border thickness, brush, and style in each side of the border. For the left side of the border, you can use LeftBorderBrush and LeftBorderStyle properties. For the top side of the border, you can use TopBorderBrush and TopBorderStyle properties. For the right side of the border, you can use RightBorderBrush and RightBorderStyle properties. For the bottom side of the border, you can use BottomBorderBrush and BottomBorderStyle properties. BorderThickness uses Thickness-typed value, so you can specify the thickness of each side easily. Note that the individual border configuration will override the global border configuration.

XAML Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Paragraph Padding="10" TopBorderBrush="DarkGray" LeftBorderBrush="OrangeRed" 
                            BottomBorderBrush="DarkMagenta" RightBorderBrush="Maroon" BorderThickness="4 2" 
                            BottomBorderStyle="Single" LeftBorderStyle="DashSmallGap" BorderStyle="DashDotDot">
        <Intersoft:Run>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
        </Intersoft:Run>
    </Intersoft:Paragraph>
</Intersoft:FlowDocument>

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.