StylusPointCollection Oluşturucular

Tanım

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

Aşırı Yüklemeler

Name Description
StylusPointCollection()

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

StylusPointCollection(IEnumerable<StylusPoint>)

Belirtilen StylusPointCollection nesnelerle sınıfının yeni bir örneğini StylusPoint 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 StylusPointCollection nesne içerebilen sınıfın yeni bir örneğini StylusPoint başlatır.

StylusPointCollection(StylusPointDescription)

sınıfında StylusPointCollectionbelirtilen özellikleri içeren sınıfının yeni bir örneğini StylusPointDescription başlatır.

StylusPointCollection(StylusPointDescription, Int32)

Sınıfının belirtilen boyutta yeni bir örneğini StylusPointCollection başlatır ve içinde StylusPointDescriptionbelirtilen özellikleri içerir.

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 StylusPoint nesneleri toplarOnStylusDown. Örnek, öğesinin StylusPointCollection ve ilk boyutunu StylusPointDescriptionbelirterek 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 StylusPointCollection nesnelerle sınıfının yeni bir örneğini StylusPoint 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 StylusPointgenel bir IEnumerable türüStylusPointCollection.

Özel durumlar

stylusPoints, null'e eşittir.

Uzunluğu points 0'dır.

-veya-

içindeki StylusPointstylusPoints nesneler uyumsuz StylusPointDescription nesnelere sahip.

Ö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 Pointnesneleri belirten StylusPoint genel bir IEnumerable türüStylusPointCollection.

Özel durumlar

points, null'e eşittir.

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 StylusPointCollection nesne içerebilen sınıfın yeni bir örneğini StylusPoint 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 StylusPoint nesneleri toplarOnStylusDown. Örnek, hem hem StylusPointCollection de ilk boyutunu StylusPointDescriptionbelirterek 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 StylusPoint daha fazla Add nesne ekleyebilirsiniz.

Şunlara uygulanır

StylusPointCollection(StylusPointDescription)

sınıfında StylusPointCollectionbelirtilen özellikleri içeren sınıfının yeni bir örneğini StylusPointDescription baş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'e eşittir.

Örnekler

Aşağıdaki örnek, özel denetim yöntemindeki StylusPoint nesneleri toplarOnStylusDown. Örnek, öğesinin StylusPointCollection ve ilk boyutunu StylusPointDescriptionbelirterek 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 StylusPoint eklenen tüm StylusPointCollection nesnelerin ile StylusPointDescriptionuyumlu bir stylusPointDescription nesnesi olmalıdır.

Şunlara uygulanır

StylusPointCollection(StylusPointDescription, Int32)

Sınıfının belirtilen boyutta yeni bir örneğini StylusPointCollection başlatır ve içinde StylusPointDescriptionbelirtilen özellikleri içerir.

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'e eşittir.

Örnekler

Aşağıdaki örnek, özel denetim yöntemindeki StylusPoint nesneleri toplarOnStylusDown. Örnek, öğesinin StylusPointCollection ve ilk boyutunu StylusPointDescriptionbelirterek 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 yeni StylusPointCollectionbir oluşturmak için kullandığınızda, StylusPointCollection belirtilen sayıda StylusPoint nesnenin barındıracağı kapasiteyle oluşturulur. yöntemini çağırarak StylusPoint daha initialCapacity fazla Add nesne ekleyebilirsiniz.

Şunlara uygulanır