Поделиться через


InkOverlay.SupportHighContrastInk - свойство

Обновлен: Ноябрь 2007

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

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
<BrowsableAttribute(True)> _
Public Property SupportHighContrastInk As Boolean
'Применение
Dim instance As InkOverlay
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);
}
/** @property */
/** @attribute BrowsableAttribute(true) */
public boolean get_SupportHighContrastInk()
/** @property */
/** @attribute BrowsableAttribute(true) */
public  void set_SupportHighContrastInk(boolean value)
public function get SupportHighContrastInk () : boolean
public function set SupportHighContrastInk (value : boolean)

Значение свойства

Тип: System.Boolean
Whether ink is rendered as just one color when the system is in High Contrast mode.

Value

Meaning

true

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

false

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

Заметки

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

Real-time ink application uses the 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 InkOverlay object is set to Color.Blue, the WindowText property is set to Color.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.

Примеры

This example sets the SupportHighContrastInk property of an InkOverlay object, mInkOverlay, to false so that ink is always drawn in the color it is collected.

mInkOverlay.SupportHighContrastInk = False
mInkOverlay.SupportHighContrastInk = false;

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkOverlay Класс

InkOverlay - члены

Microsoft.Ink - пространство имен

DrawingAttributes.Color

InkOverlay.DefaultDrawingAttributes