My Silverlight系列(10)—— Silverlight中的InkCanvas
2009-04-25 12:04:36 来源:WEB开发网 // Summary:
// Represents a collection of points that correspond to a stylus-down, move,
// and stylus-up sequence.
public sealed class Stroke : DependencyObject
{
// Summary:
// Initializes a new instance of the System.Windows.Ink.Stroke class.
public Stroke();
//
// Summary:
// Initializes a new instance of the System.Windows.Ink.Stroke class with the
// specified System.Windows.Input.StylusPointCollection.
//
// Parameters:
// stylusPoints:
// A System.Windows.Input.StylusPointCollection that represents the System.Windows.Ink.Stroke.
public Stroke(StylusPointCollection stylusPoints);
// Summary:
// Gets or sets the properties of the stroke, such as System.Windows.Ink.DrawingAttributes.Height,
// System.Windows.Ink.DrawingAttributes.Width, System.Windows.Ink.DrawingAttributes.Color,
// or System.Windows.Ink.DrawingAttributes.OutlineColor.
//
// Returns:
// The System.Windows.Ink.DrawingAttributes of the stroke.
public DrawingAttributes DrawingAttributes { get; set; }
//
// Summary:
// Gets or sets the stylus points of the System.Windows.Ink.Stroke.
//
// Returns:
// The System.Windows.Input.StylusPointCollection that contains the stylus points
// that represent the current System.Windows.Ink.Stroke.
public StylusPointCollection StylusPoints { get; set; }
// Summary:
// Retrieves the bounding box for the System.Windows.Ink.Stroke object.
//
// Returns:
// A System.Windows.Rect structure defining the bounding box for the System.Windows.Ink.Stroke
// object.
public Rect GetBounds();
//
// Summary:
// Indicates whether a specified System.Windows.Input.StylusPointCollection
// intersects with a System.Windows.Ink.Stroke object.
//
// Parameters:
// stylusPointCollection:
// The System.Windows.Input.StylusPointCollection used to check for intersection
// with the System.Windows.Ink.Stroke object.
//
// Returns:
// true if the specified System.Windows.Input.StylusPointCollection intersects
// with the System.Windows.Ink.Stroke object; otherwise, false.
public bool HitTest(StylusPointCollection stylusPointCollection);
}
Tags:My Silverlight 系列
编辑录入:爽爽 [复制链接] [打 印]- ››MySql数据库插入式的多存储引擎机制
- ››MySQL和PDO测试对比
- ››MySQL大表中重复字段的查询效率方法
- ››MySQL中BLOB字段类型介绍
- ››myql缓存优化 实现命中率100%
- ››mysql 数据库查询随机数量条目的效率问题及解决办...
- ››MyEclips8.5搭建Android开发环境
- ››MySQL中两种索引Hash与B-Tree的区别
- ››MySql存储过程 带参数处理方式
- ››Silverlight for Windows Phone 7开发系列(1):...
- ››Silverlight for Windows Phone 7开发系列(2):...
- ››Silverlight for Windows Phone 7开发系列(3):...
更多精彩
赞助商链接