Bagikan melalui


PolyBezierSegment Kelas

Definisi

Mewakili satu atau beberapa kurva Cubic Bezier.

public ref class PolyBezierSegment sealed : PathSegment
/// [Microsoft.UI.Xaml.Markup.ContentProperty(Name="Points")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PolyBezierSegment final : PathSegment
[Microsoft.UI.Xaml.Markup.ContentProperty(Name="Points")]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PolyBezierSegment : PathSegment
Public NotInheritable Class PolyBezierSegment
Inherits PathSegment
<PolyBezierSegment .../>
Warisan
Object Platform::Object IInspectable DependencyObject PathSegment PolyBezierSegment
Atribut

Contoh

Contoh ini menunjukkan cara menggunakan PolyBezierSegment untuk membuat serangkaian kurva.

<Canvas Width="500" Height="100">
  <Path Stroke="Red" StrokeThickness="2">
    <Path.Data>
      <PathGeometry>
        <PathGeometry.Figures>
          <PathFigureCollection>

            <!-- The StartPoint specifies the starting point of the first curve. -->
            <PathFigure StartPoint="10,100">
              <PathFigure.Segments>
                <PathSegmentCollection>

                  <!-- The PolyBezierSegment specifies two cubic Bezier curves.
                   The first curve is from 10,100 (start point specified above)
                   to 300,100 with a control point of 0,0 and another control
                   point of 200,0. The second curve is from 300,100 
                   (end of the last curve) to 600,100 with a control point of 300,0
                   and another control point of 400,0. -->
                  <PolyBezierSegment Points="0,0 200,0 300,100 300,0 400,0 600,100" />
                </PathSegmentCollection>
              </PathFigure.Segments>
            </PathFigure>
          </PathFigureCollection>
        </PathGeometry.Figures>
      </PathGeometry>
    </Path.Data>
  </Path>
</Canvas>

Konstruktor

PolyBezierSegment()

Menginisialisasi instans baru kelas PolyBezierSegment .

Properti

Dispatcher

Selalu kembali null di aplikasi SDK Aplikasi Windows. Gunakan DispatcherQueue sebagai gantinya.

(Diperoleh dari DependencyObject)
DispatcherQueue

DispatcherQueue Mendapatkan yang dikaitkan dengan objek ini. DispatcherQueue mewakili fasilitas yang dapat mengakses DependencyObject pada utas UI bahkan jika kode dimulai oleh utas non-UI.

(Diperoleh dari DependencyObject)
Points

Mendapatkan atau mengatur koleksi Titik yang mendefinisikan objek PolyBezierSegment ini.

PointsProperty

Mengidentifikasi properti dependensi Poin .

Metode

ClearValue(DependencyProperty)

Menghapus nilai lokal properti dependensi.

(Diperoleh dari DependencyObject)
GetAnimationBaseValue(DependencyProperty)

Mengembalikan nilai dasar apa pun yang ditetapkan untuk properti dependensi, yang akan berlaku dalam kasus di mana animasi tidak aktif.

(Diperoleh dari DependencyObject)
GetValue(DependencyProperty)

Mengembalikan nilai efektif properti dependensi saat ini dari DependencyObject.

(Diperoleh dari DependencyObject)
ReadLocalValue(DependencyProperty)

Mengembalikan nilai lokal properti dependensi, jika nilai lokal ditetapkan.

(Diperoleh dari DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

Mendaftarkan fungsi pemberitahuan untuk mendengarkan perubahan pada DependencyProperty tertentu pada instans DependencyObject ini.

(Diperoleh dari DependencyObject)
SetValue(DependencyProperty, Object)

Mengatur nilai lokal properti dependensi pada DependencyObject.

(Diperoleh dari DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

Membatalkan pemberitahuan perubahan yang sebelumnya terdaftar dengan memanggil RegisterPropertyChangedCallback.

(Diperoleh dari DependencyObject)

Berlaku untuk

Lihat juga