DrawingAttributes 类

表示在绘制墨迹 时应用于墨迹的属性。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class DrawingAttributes _
    Implements ICloneable
用法
Dim instance As DrawingAttributes
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DrawingAttributes : ICloneable
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class DrawingAttributes : ICloneable
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust") */
public class DrawingAttributes implements ICloneable
public class DrawingAttributes implements ICloneable

备注

这些绘制属性可以与笔画或光标关联,并可指定各种设置,例如颜色、宽度和透明度。

若要指定笔画的绘制属性 (Attribute),请使用 Stroke 对象的 DrawingAttributes 属性 (Property)。若要指定笔画集合中所有笔画的绘制属性,请调用 Strokes 集合的 ModifyDrawingAttributes 方法。

每个 InkCollector 对象、InkOverlay 对象和 InkPicture 控件均可为同一个光标指定一组不同的绘制属性。使用 Cursor 对象的 DrawingAttributes 属性 (Property) 获取或设置光标的绘制属性 (Attribute)。

继承层次结构

System.Object
  Microsoft.Ink.DrawingAttributes

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

DrawingAttributes 成员

Microsoft.Ink 命名空间

Stroke.DrawingAttributes

Strokes.ModifyDrawingAttributes

Cursor.DrawingAttributes

InkCollector.DefaultDrawingAttributes

InkOverlay.DefaultDrawingAttributes

InkPicture.DefaultDrawingAttributes

InkEdit.DrawingAttributes