Sdílet prostřednictvím


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
<BrowsableAttribute(True)> _
Public Property SupportHighContrastSelectionUI As Boolean
'Usage
Dim instance As InkPicture 
Dim value As Boolean 

value = instance.SupportHighContrastSelectionUI

instance.SupportHighContrastSelectionUI = value
[BrowsableAttribute(true)]
public bool SupportHighContrastSelectionUI { get; set; }
[BrowsableAttribute(true)]
public:
property bool SupportHighContrastSelectionUI {
    bool get ();
    void set (bool value);
}
public function get SupportHighContrastSelectionUI () : boolean 
public function set SupportHighContrastSelectionUI (value : boolean)

Property Value

Type: System.Boolean
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.

Examples

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

mInkPicture.SupportHighContrastSelectionUI = False
mInkPicture.SupportHighContrastSelectionUI = false;

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkPicture Class

InkPicture Members

Microsoft.Ink Namespace

InkPicture.SupportHighContrastInk

DrawingAttributes.Color