Skip to content

Foreground Property

Description

Gets or sets the MarkupBrush to apply to the text contents of the MarkupTextBlock.

Property Type

Read-write property

Syntax (Visual Basic)

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

Return Type

A MarkupBrush used to apply to the text contents.

Remarks

  • Any Foreground settings on child elements override this top-level setting.
  • The CreateSolidBrush method is used to create a solid color brush to paint the foreground for a TextBlock.

For example:

TextBlock1.Foreground = Context.CreateSolidBrush(vbYellow)

For example:

Print TextBlock1.Foreground.Color

See Also


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