InkEdit.DrawingAttributes 属性

获取或设置在绘制墨迹 时应用于该墨迹的绘制属性。

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

语法

声明
<BrowsableAttribute(False)> _
Public Property DrawingAttributes As DrawingAttributes
用法
Dim instance As InkEdit
Dim value As DrawingAttributes

value = instance.DrawingAttributes

instance.DrawingAttributes = value
[BrowsableAttribute(false)]
public DrawingAttributes DrawingAttributes { get; set; }
[BrowsableAttribute(false)]
public:
property DrawingAttributes^ DrawingAttributes {
    DrawingAttributes^ get ();
    void set (DrawingAttributes^ value);
}
/** @property */
/** @attribute BrowsableAttribute(false) */
public DrawingAttributes get_DrawingAttributes()
/** @property */
/** @attribute BrowsableAttribute(false) */
public  void set_DrawingAttributes(DrawingAttributes value)
public function get DrawingAttributes () : DrawingAttributes
public function set DrawingAttributes (value : DrawingAttributes)

属性值

类型:Microsoft.Ink.DrawingAttributes
绘制墨迹时应用于该墨迹的 DrawingAttributes 对象。此属性不可设置为 nullnull 引用(在 Visual Basic 中为 Nothing)(在 Microsoft(R) Visual Basic(R) .NET 中为 Nothing)。

备注

DrawingAttributes 属性指定墨迹的外观。例如,可以指定墨迹的宽度或颜色。

DrawingAttributes 属性 (Property) 为正在绘制但尚未识别的墨迹 指定绘制属性 (Attribute)。因此 InkEdit.DrawingAttributes 属性 (Property) 与 Stroke.DrawingAttributes 属性 (Property) 不同,后者指定以前收集的墨迹的属性 (Attribute)。不过,当 InkEdit.DrawingAttributesFitToCurve 属性默认设置为 true 时,InkEdit.DrawingAttributes 属性更类似于 InkPicture.DefaultDrawingAttributes 属性。

示例

此示例修改了 DrawingAttributes 属性以更改呈现的墨迹 的颜色和宽度。

mInkEdit.DrawingAttributes.Color = Color.Blue
mInkEdit.DrawingAttributes.Width = 106
mInkEdit.DrawingAttributes.Color = Color.Blue;
mInkEdit.DrawingAttributes.Width = 106;

平台

Windows Vista

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

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkEdit 类

InkEdit 成员

Microsoft.Ink 命名空间

DrawingAttributes

InkCollector.DefaultDrawingAttributes