Skip to content

Background Property

Description

Gets or sets a MarkupBrush that fills the area between the bounds of a MarkupBorder.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Background() As [MarkupBrush](XtremeMarkup~MarkupBrush.md)

Return Type

A MarkupBrush that draws the background.

Remarks

The CreateSolidBrush method is used to create a solid color brush to paint the background for a Border.

For example:

Border1.Background = Context.CreateSolidBrush(vbYellow)

Note that CreateSolidBrush creates a MarkupSolidColorBrush object that stores the color value.

To retrieve the current color, use the MarkupSolidColorBrush.Color property.

For example:

Print Border1.Background.Color

See Also

MarkupBorder Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.