Intersoft ClientUI Documentation
Background Property (TextElement)



Gets or sets the Brush used to fill the background of the content area.
Syntax
Public Property Background As Brush
Dim instance As TextElement
Dim value As Brush
 
instance.Background = value
 
value = instance.Background
public Brush Background {get; set;}
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 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

Reference

TextElement Class
TextElement Members

Send Feedback