Stroke 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表單一筆劃。
public ref class Stroke : System::ComponentModel::INotifyPropertyChanged
public class Stroke : System.ComponentModel.INotifyPropertyChanged
type Stroke = class
interface INotifyPropertyChanged
Public Class Stroke
Implements INotifyPropertyChanged
- 繼承
-
Stroke
- 實作
備註
A Stroke 是從指點裝置(如繪圖筆或滑鼠)收集的資料物件。 可以 Stroke 程式化地建立與操作,並可在可使用墨水的元素上以視覺化方式表示, InkCanvas例如 。 A Stroke 包含其位置與外觀的資訊。 屬性 StylusPoints 是一組 StylusPoint 指定 位置 Stroke的物件集合。 該 DrawingAttributes 性質指定了筆劃的外觀。
建構函式
| 名稱 | Description |
|---|---|
| Stroke(StylusPointCollection, DrawingAttributes) |
初始化 Stroke 類別的新執行個體。 |
| Stroke(StylusPointCollection) |
初始化 Stroke 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| DrawingAttributes |
取得或設定物件的 Stroke 。DrawingAttributes |
| StylusPoints |
回傳 . 的觸控筆點 Stroke數。 |
方法
事件
| 名稱 | Description |
|---|---|
| DrawingAttributesChanged |
當與Stroke物件相關的事物DrawingAttributes發生變化時。 |
| DrawingAttributesReplaced |
當物件的繪圖屬性 Stroke 被替換時,會發生這種情況。 |
| Invalidated |
當外觀 Stroke 發生變化時。 |
| PropertyDataChanged |
當物件的自訂屬性 Stroke 改變時會發生。 |
| StylusPointsChanged |
當房產變更時 StylusPoints 發生。 |
| StylusPointsReplaced |
當屬性 StylusPoints 被指派到新的 StylusPointCollection時,會發生這種情況。 |
明確介面實作
| 名稱 | Description |
|---|---|
| INotifyPropertyChanged.PropertyChanged |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 當任何 Stroke 房產價值發生變化時,就會發生這種情況。 |