Skip to content

ViewReadOnlyForeColor Property

Description

The ViewReadOnlyForeColor is used to get or set the text color of read-only items.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property ViewReadOnlyForeColor() As ULong

Remarks

By default, ViewReadOnlyForeColor is light grey (using the default theme) and the back color of the item is dark grey (using the default theme). The ViewBackColor will not be used.

If ViewReadOnlyForeColor is changed from its default value, then the back color of the item will be set to ViewBackColor.

Example

Changing the Text Color of Read-Only Items (Visual Basic)

This sample illustrates how to change the text color of read-only items.

' The text for read-only items will be red.
wndPropertyGrid.ViewReadOnlyForeColor = vbRed

See Also


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