Intersoft ClientUI Documentation
Background Property
See Also  Send Feedback
Intersoft.Client.Documents Namespace > TextElement Class : Background Property






Gets or sets the Brush used to fill the background of the content area.

Syntax

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

Remarks

Background property will result in different rendering for Block and Inline elements. FlowDocument will use the boundary of the element to render its background.

XAML Copy Code
<Intersoft:FlowDocument>
    <Intersoft:Paragraph Background="BurlyWood" LineSpacingType="OneAndHalfLines" Padding="10">
        <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:LineBreak/>
        <Intersoft:Run Background="Beige">
            Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
        </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.