Compartir a través de


InkPicture.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 InkPicture
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

true if all selection UI renders in high contrast when the system is in High Contrast mode. Default. false if 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 WindowText, Window, and Highlight properties of the SystemColors 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 InkPicture control to false so that the selection UI is always drawn as if High Contrast mode is off.

[C#]

theInkPicture.SupportHighContrastSelectionUI = false//...

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

[Visual Basic]

theInkPicture.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

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