开发学院图形图像Flash My Silverlight系列(10)—— Silverlight中的In... 阅读

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 :

 // 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);
    }

上一页  1 2 3 4  下一页

Tags:My Silverlight 系列

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接