更改 StrokeCollection 中每个笔画的类型。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Sub SetStrokesType ( _
strokes As StrokeCollection, _
strokeType As StrokeType _
)
用法
Dim instance As InkAnalyzer
Dim strokes As StrokeCollection
Dim strokeType As StrokeType
instance.SetStrokesType(strokes, strokeType)
public void SetStrokesType(
StrokeCollection strokes,
StrokeType strokeType
)
public:
void SetStrokesType(
StrokeCollection^ strokes,
StrokeType strokeType
)
public void SetStrokesType(
StrokeCollection strokes,
StrokeType strokeType
)
public function SetStrokesType(
strokes : StrokeCollection,
strokeType : StrokeType
)
参数
- strokes
类型:System.Windows.Ink.StrokeCollection
分配给 strokeType 的笔画的集合。
- strokeType
类型:System.Windows.Ink.StrokeType
分配给 strokes 中的笔画的笔画类型。
备注
如果笔画的类型为 System.Windows.Ink.StrokeType 值 Unspecified,则 InkAnalyzer 会在墨迹分析过程中对笔画进行分类。否则,InkAnalyzer 使用在笔画上设置的类型。
若要获取当前分配给笔画的类型,请调用 GetStrokeType()。
示例
此示例将 StrokeType 值 theStrokeType 分配给与 InkAnalyzer (theInkAnalyzer) 关联的 ContextNode(名为 theContextNode)中的所有笔画。
theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType)
theInkAnalyzer.SetStrokesType(theContextNode.Strokes, theStrokeType);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0