Intersoft.Client.Documents Namespace > TextElement Class : Background Property |
Public Property Background As Brush
Dim instance As TextElement Dim value As Brush instance.Background = value value = instance.Background
public Brush Background {get; set;}
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> |
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