Share via


InkOverlay.SupportHighContrastSelectionUI Property

Gets or sets a value that specifies whether all selection user interface (UI) are drawn in high contrast when the system is in High Contrast mode.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Property SupportHighContrastSelectionUI As Boolean
'Usage
Dim instance As InkOverlay
Dim value As Boolean

value = instance.SupportHighContrastSelectionUI

instance.SupportHighContrastSelectionUI = value
public bool SupportHighContrastSelectionUI { get; set; }
public:
property bool SupportHighContrastSelectionUI {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_SupportHighContrastSelectionUI ()

/** @property */
public void set_SupportHighContrastSelectionUI (boolean value)
public function get SupportHighContrastSelectionUI () : boolean

public function set SupportHighContrastSelectionUI (value : boolean)
Not applicable.

Property Value

Whether all selection user interface (UI) renders in high contrast when the system is in High Contrast mode.

Value

Meaning

true

Default. All selection UI renders in high contrast when the system is in High Contrast mode.

false

Changes to the system's High Contrast mode are ignored and the selection UI is drawn as it is when High Contrast mode is off.

Remarks

This property changes the way selection UI is displayed when the system changes to High Contrast mode. Selection UI elements include the selection bounding box and the selection handles.

Ink selection uses the WindowTextWindowText, Window, and Highlight properties of the SystemColorsSystemColors class to draw elements of the selection UI when the system is in High Contrast mode and the SupportHighContrastSelectionUI property is true.

Example

This C# example sets the SupportHighContrastSelectionUI property of an InkOverlay object to false so that the selection UI is always drawn as if High Contrast mode is off.

theInkOverlay.SupportHighContrastSelectionUI = false;

This Microsoft Visual Basic .NET example sets the SupportHighContrastInk example sets the SupportHighContrastSelectionUI property of an InkOverlay object to false so that the selection UI is always drawn as if High Contrast mode is off.

theInkOverlay.SupportHighContrastSelectionUI = False

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, 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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkOverlay Class
InkOverlay Members
Microsoft.Ink Namespace
InkOverlay.SupportHighContrastInk
DrawingAttributes.Color