Export (0) Print
Expand All

VisualStyleRenderer.GetBoolean Method

Returns the value of the specified Boolean property for the current visual style element.

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public bool GetBoolean (
	BooleanProperty prop
)
public boolean GetBoolean (
	BooleanProperty prop
)
public function GetBoolean (
	prop : BooleanProperty
) : boolean
Not applicable.

Parameters

prop

One of the BooleanProperty values that specifies which property value to retrieve for the current visual style element.

Return Value

true if the property specified by the prop parameter is true for the current visual style element; otherwise, false.

Exception typeCondition

InvalidEnumArgumentException

prop is not one of the BooleanProperty values.

Visual styles use a set of Boolean values to describe some properties of the elements defined by a style. These properties are encapsulated by the BooleanProperty values.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft