InkPicture.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
<BrowsableAttribute(True)> _
Public Property SupportHighContrastInk As Boolean
'Usage
Dim instance As InkPicture
Dim value As Boolean
value = instance.SupportHighContrastInk
instance.SupportHighContrastInk = value
[BrowsableAttribute(true)]
public bool SupportHighContrastInk { get; set; }
[BrowsableAttribute(true)]
public:
property bool SupportHighContrastInk {
bool get ();
void set (bool value);
}
public function get SupportHighContrastInk () : boolean
public function set SupportHighContrastInk (value : boolean)
Property Value
Type: System.Boolean
true if all collected ink is rendered as Color = WindowText. Default.
false if Ink is rendered in the color in which it was originally collected.
Whether ink is rendered as just one color when the system is in High Contrast mode.
Remarks
This property changes the way ink renders when the system changes to High Contrast mode.
Real-time ink application uses the 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 InkPicture object is set to Blue, the WindowText property is set to 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.
Examples
This example sets the SupportHighContrastInk property of an InkPicture control, mInkPicture, to false so that ink is always drawn in the color it is collected.
mInkPicture.SupportHighContrastInk = False
mInkPicture.SupportHighContrastInk = 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