Skip to content

Foreground Property

Description

Gets or sets a MarkupBrush that is used to fill the content of the content area.

Property Type

Read-write property

Syntax (Visual Basic)

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

Return Type

The MarkupBrush used to apply to the text contents. Default is Black.

Remarks

The CreateSolidBrush method is used to create a solid color brush to paint the foreground for a text element.

For example:

Hyperlink1.Foreground = 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 Hyperlink1.Foreground.Color

See Also


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