Background Property
Description
Gets or sets a MarkupBrush that is used to fill the background of the content area.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Background() As [MarkupBrush](XtremeMarkup~MarkupBrush.md)
Return Type
The MarkupBrush used to fill the background of the content area. Default is Nothing (No Background).
Remarks
The CreateSolidBrush method is used to create a solid color brush to paint the background for a text element.
For example:
Hyperlink1.Background = Context.CreateSolidBrush(vbYellow)
Note that CreateSolidBrush creates a MarkupSolidColorBrush object that stores the color value. A value of Nothing sets the background to Transparent.
To retrieve the current color, use the MarkupSolidColorBrush.Color property.
For example:
Print Hyperlink1.Background.Color
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.