Share via


InkCollector.SupportHighContrastInk Property

Gets or sets a value that specifies whether ink is rendered as just one color when the system is in High Contrast mode.

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

Syntax

'Declaration
Public Property SupportHighContrastInk As Boolean
'Usage
Dim instance As InkCollector
Dim value As Boolean

value = instance.SupportHighContrastInk

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

/** @property */
public void set_SupportHighContrastInk (boolean value)
public function get SupportHighContrastInk () : boolean

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

Property Value

Whether ink is rendered as just one color when the system is in High Contrast mode.

Value

Meaning

true

All collected ink is rendered as Color = System.Drawing.SystemColors.WindowTextSystem.Drawing.SystemColors.WindowText.

false

Ink is rendered in the color in which it was originally collected.

Remarks

This property changes the way ink renders when the system changes to High Contrast mode.

Real-time ink application uses the System.Drawing.SystemColors.WindowTextSystem.Drawing.SystemColors.WindowText property when the system is in High Contrast mode and the SupportHighContrastInk property is true, but the inherent color of a stroke made under these conditions remains unchanged. For example, if the Color property of the DefaultDrawingAttributes property of the InkCollector object is set to Color.BlueColor.Blue, the System.Drawing.SystemColors.WindowTextSystem.Drawing.SystemColors.WindowText property is set to Color.WhiteColor.White, and the system is in High Contrast mode, then a newly drawn stroke appears white but the actual stroke color is still Blue if queried. For more information about this behavior, see the DrawingAttributes.Color property.

Example

This C# example sets the SupportHighContrastInk property of an InkCollector object, theInkCollector, to false so that ink is always drawn in the color it is collected.

theInkCollector.SupportHighContrastInk = false;

This Microsoft® Visual Basic® .NET sets the SupportHighContrastInk property of an InkCollector object, theInkCollector, to false so that ink is always drawn in the color it is collected.

theInkCollector.SupportHighContrastInk = 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

InkCollector Class
InkCollector Members
Microsoft.Ink Namespace
DrawingAttributes.Color
InkCollector.DefaultDrawingAttributes