Aracılığıyla paylaş


StylusPointCollection Oluşturucular

Tanım

StylusPointCollection sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

StylusPointCollection()

StylusPointCollection sınıfının yeni bir örneğini başlatır.

StylusPointCollection(IEnumerable<StylusPoint>)

Belirtilen StylusPoint nesnelerle sınıfının yeni bir örneğini StylusPointCollection başlatır.

StylusPointCollection(IEnumerable<Point>)

Belirtilen noktalarla sınıfının yeni bir örneğini StylusPointCollection başlatır.

StylusPointCollection(Int32)

Başlangıçta belirtilen sayıda nesne içerebilen sınıfının yeni bir örneğini StylusPointCollectionStylusPoint başlatır.

StylusPointCollection(StylusPointDescription)

içinde belirtilen özellikleri içeren sınıfının yeni bir örneğini StylusPointCollectionStylusPointDescriptionbaşlatır.

StylusPointCollection(StylusPointDescription, Int32)

Sınıfının belirtilen boyutta ve içinde belirtilen özellikleri içeren yeni bir örneğini StylusPointCollectionStylusPointDescriptionbaşlatır.

StylusPointCollection()

StylusPointCollection sınıfının yeni bir örneğini başlatır.

public:
 StylusPointCollection();
public StylusPointCollection ();
Public Sub New ()

Örnekler

Aşağıdaki örnek, özel denetim yöntemindeki OnStylusDown nesneleri toplarStylusPoint. Örnek, öğesinin StylusPointDescription ve ilk boyutunu StylusPointCollectionbelirterek bir StylusPointCollection oluşturur.

StylusPointCollection stylusPoints;

protected override void OnStylusDown(StylusDownEventArgs e)
{
    base.OnStylusDown(e);

    StylusPointCollection eventPoints = e.GetStylusPoints(this);

    // Create a new StylusPointCollection using the StylusPointDescription
    // from the stylus points in the StylusDownEventArgs.
    stylusPoints = new StylusPointCollection(eventPoints.Description, eventPoints.Count);
    stylusPoints.Add(eventPoints);
}
Private stylusPoints As StylusPointCollection


Protected Overrides Sub OnStylusDown(ByVal e As StylusDownEventArgs) 
    MyBase.OnStylusDown(e)
    
    Dim eventPoints As StylusPointCollection = e.GetStylusPoints(Me)
    
    ' Create a new StylusPointCollection using the StylusPointDescription
    ' from the stylus points in the StylusDownEventArgs.
    stylusPoints = New StylusPointCollection(eventPoints.Description, eventPoints.Count)
    stylusPoints.Add(eventPoints)

End Sub

Şunlara uygulanır

StylusPointCollection(IEnumerable<StylusPoint>)

Belirtilen StylusPoint nesnelerle sınıfının yeni bir örneğini StylusPointCollection başlatır.

public:
 StylusPointCollection(System::Collections::Generic::IEnumerable<System::Windows::Input::StylusPoint> ^ stylusPoints);
public StylusPointCollection (System.Collections.Generic.IEnumerable<System.Windows.Input.StylusPoint> stylusPoints);
new System.Windows.Input.StylusPointCollection : seq<System.Windows.Input.StylusPoint> -> System.Windows.Input.StylusPointCollection
Public Sub New (stylusPoints As IEnumerable(Of StylusPoint))

Parametreler

stylusPoints
IEnumerable<StylusPoint>

öğesine eklenecek StylusPointCollectiongenel bir IEnumerable türüStylusPoint.

Özel durumlar

stylusPoints, null değeridir.

Uzunluğu points 0'dır.

-veya-

StylusPoint içindeki stylusPoints nesnelerin uyumsuz StylusPointDescription nesneleri var.

Örnekler

Aşağıdaki örnek bir StylusPointCollectionoluşturur.

StylusPoint stylusPoint1 =  new StylusPoint(100, 100, .5f);
StylusPoint stylusPoint2 = new StylusPoint(200, 200, .35f);

StylusPointCollection points = new StylusPointCollection(
    new StylusPoint[] { stylusPoint1, stylusPoint2 });
Dim stylusPoint1 As New StylusPoint(100, 100, 0.5F)
Dim stylusPoint2 As New StylusPoint(200, 200, 0.35F)

Dim points As New StylusPointCollection(New StylusPoint() {stylusPoint1, stylusPoint2})

Şunlara uygulanır

StylusPointCollection(IEnumerable<Point>)

Belirtilen noktalarla sınıfının yeni bir örneğini StylusPointCollection başlatır.

public:
 StylusPointCollection(System::Collections::Generic::IEnumerable<System::Windows::Point> ^ points);
public StylusPointCollection (System.Collections.Generic.IEnumerable<System.Windows.Point> points);
new System.Windows.Input.StylusPointCollection : seq<System.Windows.Point> -> System.Windows.Input.StylusPointCollection
Public Sub New (points As IEnumerable(Of Point))

Parametreler

points
IEnumerable<Point>

öğesine eklenecek StylusPointCollectionnesneleri belirten StylusPoint genel bir IEnumerable türüPoint.

Özel durumlar

points, null değeridir.

Uzunluğu points 0'dır.

Örnekler

Aşağıdaki örnek bir StylusPointCollectionoluşturur.

StylusPointCollection points = new StylusPointCollection(new Point[]
    {
        new Point(100, 100),
        new Point(100, 200),
        new Point(200, 250),
        new Point(300, 300)
    });
Dim points As New StylusPointCollection(New Point() _
                        {New Point(100, 100), _
                         New Point(100, 200), _
                         New Point(200, 250), _
                         New Point(300, 300)})

Şunlara uygulanır

StylusPointCollection(Int32)

Başlangıçta belirtilen sayıda nesne içerebilen sınıfının yeni bir örneğini StylusPointCollectionStylusPoint başlatır.

public:
 StylusPointCollection(int initialCapacity);
public StylusPointCollection (int initialCapacity);
new System.Windows.Input.StylusPointCollection : int -> System.Windows.Input.StylusPointCollection
Public Sub New (initialCapacity As Integer)

Parametreler

initialCapacity
Int32

öğesinin StylusPoint başlangıçta içerebileceği nesne StylusPointCollection sayısı.

Özel durumlar

initialCapacity negatiftir.

Örnekler

Aşağıdaki örnek, özel denetim yöntemindeki OnStylusDown nesneleri toplarStylusPoint. Örnek, hem hem StylusPointDescription de ilk boyutunu StylusPointCollectionbelirterek bir StylusPointCollection oluşturur.

StylusPointCollection stylusPoints;

protected override void OnStylusDown(StylusDownEventArgs e)
{
    base.OnStylusDown(e);

    StylusPointCollection eventPoints = e.GetStylusPoints(this);

    // Create a new StylusPointCollection using the StylusPointDescription
    // from the stylus points in the StylusDownEventArgs.
    stylusPoints = new StylusPointCollection(eventPoints.Description, eventPoints.Count);
    stylusPoints.Add(eventPoints);
}
Private stylusPoints As StylusPointCollection


Protected Overrides Sub OnStylusDown(ByVal e As StylusDownEventArgs) 
    MyBase.OnStylusDown(e)
    
    Dim eventPoints As StylusPointCollection = e.GetStylusPoints(Me)
    
    ' Create a new StylusPointCollection using the StylusPointDescription
    ' from the stylus points in the StylusDownEventArgs.
    stylusPoints = New StylusPointCollection(eventPoints.Description, eventPoints.Count)
    stylusPoints.Add(eventPoints)

End Sub

Açıklamalar

Oluşturucuyu StylusPointCollection kullanarak yeni StylusPointCollectionbir oluştururken öğesinin olduğunu initialCapacitybelirtirsiniz. Ancak yöntemini çağırarak Add daha fazla StylusPoint nesne ekleyebilirsiniz.

Şunlara uygulanır

StylusPointCollection(StylusPointDescription)

içinde belirtilen özellikleri içeren sınıfının yeni bir örneğini StylusPointCollectionStylusPointDescriptionbaşlatır.

public:
 StylusPointCollection(System::Windows::Input::StylusPointDescription ^ stylusPointDescription);
public StylusPointCollection (System.Windows.Input.StylusPointDescription stylusPointDescription);
new System.Windows.Input.StylusPointCollection : System.Windows.Input.StylusPointDescription -> System.Windows.Input.StylusPointCollection
Public Sub New (stylusPointDescription As StylusPointDescription)

Parametreler

stylusPointDescription
StylusPointDescription

StylusPointDescription Her StylusPointbirinde depolanan ek özellikleri belirten bir .

Özel durumlar

stylusPointDescription, null değeridir.

Örnekler

Aşağıdaki örnek, özel denetim yöntemindeki OnStylusDown nesneleri toplarStylusPoint. Örnek, öğesinin StylusPointDescription ve ilk boyutunu StylusPointCollectionbelirterek bir StylusPointCollection oluşturur.

StylusPointCollection stylusPoints;

protected override void OnStylusDown(StylusDownEventArgs e)
{
    base.OnStylusDown(e);

    StylusPointCollection eventPoints = e.GetStylusPoints(this);

    // Create a new StylusPointCollection using the StylusPointDescription
    // from the stylus points in the StylusDownEventArgs.
    stylusPoints = new StylusPointCollection(eventPoints.Description, eventPoints.Count);
    stylusPoints.Add(eventPoints);
}
Private stylusPoints As StylusPointCollection


Protected Overrides Sub OnStylusDown(ByVal e As StylusDownEventArgs) 
    MyBase.OnStylusDown(e)
    
    Dim eventPoints As StylusPointCollection = e.GetStylusPoints(Me)
    
    ' Create a new StylusPointCollection using the StylusPointDescription
    ' from the stylus points in the StylusDownEventArgs.
    stylusPoints = New StylusPointCollection(eventPoints.Description, eventPoints.Count)
    stylusPoints.Add(eventPoints)

End Sub

Açıklamalar

öğesine StylusPointCollection eklenen tüm StylusPoint nesnelerin ile stylusPointDescriptionuyumlu bir StylusPointDescription nesnesi olmalıdır.

Şunlara uygulanır

StylusPointCollection(StylusPointDescription, Int32)

Sınıfının belirtilen boyutta ve içinde belirtilen özellikleri içeren yeni bir örneğini StylusPointCollectionStylusPointDescriptionbaşlatır.

public:
 StylusPointCollection(System::Windows::Input::StylusPointDescription ^ stylusPointDescription, int initialCapacity);
public StylusPointCollection (System.Windows.Input.StylusPointDescription stylusPointDescription, int initialCapacity);
new System.Windows.Input.StylusPointCollection : System.Windows.Input.StylusPointDescription * int -> System.Windows.Input.StylusPointCollection
Public Sub New (stylusPointDescription As StylusPointDescription, initialCapacity As Integer)

Parametreler

stylusPointDescription
StylusPointDescription

StylusPointDescription Her StylusPointbirinde depolanan ek özellikleri belirten bir .

initialCapacity
Int32

öğesinin StylusPoint başlangıçta içerebileceği nesne StylusPointCollection sayısı.

Özel durumlar

initialCapacity negatiftir.

stylusPointDescription, null değeridir.

Örnekler

Aşağıdaki örnek, özel denetim yöntemindeki OnStylusDown nesneleri toplarStylusPoint. Örnek, öğesinin StylusPointDescription ve ilk boyutunu StylusPointCollectionbelirterek bir StylusPointCollection oluşturur.

StylusPointCollection stylusPoints;

protected override void OnStylusDown(StylusDownEventArgs e)
{
    base.OnStylusDown(e);

    StylusPointCollection eventPoints = e.GetStylusPoints(this);

    // Create a new StylusPointCollection using the StylusPointDescription
    // from the stylus points in the StylusDownEventArgs.
    stylusPoints = new StylusPointCollection(eventPoints.Description, eventPoints.Count);
    stylusPoints.Add(eventPoints);
}
Private stylusPoints As StylusPointCollection


Protected Overrides Sub OnStylusDown(ByVal e As StylusDownEventArgs) 
    MyBase.OnStylusDown(e)
    
    Dim eventPoints As StylusPointCollection = e.GetStylusPoints(Me)
    
    ' Create a new StylusPointCollection using the StylusPointDescription
    ' from the stylus points in the StylusDownEventArgs.
    stylusPoints = New StylusPointCollection(eventPoints.Description, eventPoints.Count)
    stylusPoints.Add(eventPoints)

End Sub

Açıklamalar

Yeni StylusPointCollectionbir oluşturmak için oluşturucuyu StylusPointCollection kullandığınızda, StylusPointCollection belirtilen sayıda StylusPoint nesneyi barındırma kapasitesiyle oluşturulur. yöntemini çağırarak değerinden initialCapacityAdd daha fazla StylusPoint nesne ekleyebilirsiniz.

Şunlara uygulanır