/
Stroke.xml
1900 lines (1720 loc) · 124 KB
/
Stroke.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="Stroke" FullName="System.Windows.Ink.Stroke">
<TypeSignature Language="C#" Value="public class Stroke : System.ComponentModel.INotifyPropertyChanged" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit Stroke extends System.Object implements class System.ComponentModel.INotifyPropertyChanged" />
<TypeSignature Language="DocId" Value="T:System.Windows.Ink.Stroke" />
<TypeSignature Language="VB.NET" Value="Public Class Stroke
Implements INotifyPropertyChanged" />
<TypeSignature Language="F#" Value="type Stroke = class
 interface INotifyPropertyChanged" />
<TypeSignature Language="C++ CLI" Value="public ref class Stroke : System::ComponentModel::INotifyPropertyChanged" />
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.ComponentModel.INotifyPropertyChanged</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Represents a single ink stroke.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A <xref:System.Windows.Ink.Stroke> is the data object that is collected from a pointing device, such as a tablet pen or a mouse. The <xref:System.Windows.Ink.Stroke> can be created and manipulated programmatically, and can be represented visually on an ink-enabled element, such as the <xref:System.Windows.Controls.InkCanvas>. A <xref:System.Windows.Ink.Stroke> contains information about both its position and appearance. The <xref:System.Windows.Ink.Stroke.StylusPoints%2A> property is a collection of <xref:System.Windows.Input.StylusPoint> objects that specifies the position of the <xref:System.Windows.Ink.Stroke>. The <xref:System.Windows.Ink.DrawingAttributes> property specifies a stroke's appearance.
]]></format>
</remarks>
<altmember cref="T:System.Windows.Ink.StrokeCollection" />
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Ink.Stroke" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Stroke (System.Windows.Input.StylusPointCollection stylusPoints);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Windows.Input.StylusPointCollection stylusPoints) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.#ctor(System.Windows.Input.StylusPointCollection)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (stylusPoints As StylusPointCollection)" />
<MemberSignature Language="F#" Value="new System.Windows.Ink.Stroke : System.Windows.Input.StylusPointCollection -> System.Windows.Ink.Stroke" Usage="new System.Windows.Ink.Stroke stylusPoints" />
<MemberSignature Language="C++ CLI" Value="public:
 Stroke(System::Windows::Input::StylusPointCollection ^ stylusPoints);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="stylusPoints" Type="System.Windows.Input.StylusPointCollection" />
</Parameters>
<Docs>
<param name="stylusPoints">A <see cref="T:System.Windows.Input.StylusPointCollection" /> that represents the <see cref="T:System.Windows.Ink.Stroke" />.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Ink.Stroke" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates how to create a <xref:System.Windows.Ink.Stroke> from a <xref:System.Windows.Input.StylusPointCollection> and <xref:System.Windows.Ink.DrawingAttributes> object. This example assumes that there is an <xref:System.Windows.Controls.InkPresenter> called `myInkPresenter`.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet2":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="stylusPoints" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="stylusPoints" /> is empty.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Stroke (System.Windows.Input.StylusPointCollection stylusPoints, System.Windows.Ink.DrawingAttributes drawingAttributes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Windows.Input.StylusPointCollection stylusPoints, class System.Windows.Ink.DrawingAttributes drawingAttributes) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.#ctor(System.Windows.Input.StylusPointCollection,System.Windows.Ink.DrawingAttributes)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (stylusPoints As StylusPointCollection, drawingAttributes As DrawingAttributes)" />
<MemberSignature Language="F#" Value="new System.Windows.Ink.Stroke : System.Windows.Input.StylusPointCollection * System.Windows.Ink.DrawingAttributes -> System.Windows.Ink.Stroke" Usage="new System.Windows.Ink.Stroke (stylusPoints, drawingAttributes)" />
<MemberSignature Language="C++ CLI" Value="public:
 Stroke(System::Windows::Input::StylusPointCollection ^ stylusPoints, System::Windows::Ink::DrawingAttributes ^ drawingAttributes);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="stylusPoints" Type="System.Windows.Input.StylusPointCollection" />
<Parameter Name="drawingAttributes" Type="System.Windows.Ink.DrawingAttributes" />
</Parameters>
<Docs>
<param name="stylusPoints">A <see cref="T:System.Windows.Input.StylusPointCollection" /> that represents the <see cref="T:System.Windows.Ink.Stroke" />.</param>
<param name="drawingAttributes">A <see cref="T:System.Windows.Ink.DrawingAttributes" /> object that specifies the appearance of the <see cref="T:System.Windows.Ink.Stroke" />.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Ink.Stroke" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates how to create a <xref:System.Windows.Ink.Stroke> from a <xref:System.Windows.Input.StylusPointCollection> and <xref:System.Windows.Ink.DrawingAttributes> object. This example assumes that there is an <xref:System.Windows.Controls.InkPresenter> called `myInkPresenter`.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet2":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="stylusPoints" /> is <see langword="null" />.
-or-
<paramref name="drawingAtrributes" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
<paramref name="stylusPoints" /> is empty.</exception>
</Docs>
</Member>
<Member MemberName="AddPropertyData">
<MemberSignature Language="C#" Value="public void AddPropertyData (Guid propertyDataId, object propertyData);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddPropertyData(valuetype System.Guid propertyDataId, object propertyData) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.AddPropertyData(System.Guid,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Sub AddPropertyData (propertyDataId As Guid, propertyData As Object)" />
<MemberSignature Language="F#" Value="member this.AddPropertyData : Guid * obj -> unit" Usage="stroke.AddPropertyData (propertyDataId, propertyData)" />
<MemberSignature Language="C++ CLI" Value="public:
 void AddPropertyData(Guid propertyDataId, System::Object ^ propertyData);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyDataId" Type="System.Guid" />
<Parameter Name="propertyData" Type="System.Object" />
</Parameters>
<Docs>
<param name="propertyDataId">The unique identifier for the property.</param>
<param name="propertyData">The value of the custom property. <paramref name="propertyData" /> must be of type <see cref="T:System.Char" />, <see cref="T:System.Byte" />, <see cref="T:System.Int16" />, <see cref="T:System.UInt16" />, <see cref="T:System.Int32" />, <see cref="T:System.UInt32" />, <see cref="T:System.Int64" />, <see cref="T:System.UInt64" />, <see cref="T:System.Single" />, <see cref="T:System.Double" />, <see cref="T:System.DateTime" />, <see cref="T:System.Boolean" />, <see cref="T:System.String" />, <see cref="T:System.Decimal" /> or an array of these data types, except <see cref="T:System.String" />, which is not allowed.</param>
<summary>Adds a custom property to the <see cref="T:System.Windows.Ink.Stroke" /> object.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is useful if you need to store extra information in the <xref:System.Windows.Ink.Stroke>.
## Examples
The following example demonstrates how to add a custom property to a <xref:System.Windows.Ink.Stroke> object.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet3":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentException">The <paramref name="propertyData" /> argument is not one of the allowed data types listed in the <see langword="Parameters" /> section.</exception>
<altmember cref="M:System.Windows.Ink.Stroke.ContainsPropertyData(System.Guid)" />
<altmember cref="M:System.Windows.Ink.Stroke.GetPropertyData(System.Guid)" />
<altmember cref="M:System.Windows.Ink.Stroke.RemovePropertyData(System.Guid)" />
</Docs>
</Member>
<Member MemberName="Clone">
<MemberSignature Language="C#" Value="public virtual System.Windows.Ink.Stroke Clone ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Windows.Ink.Stroke Clone() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.Clone" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function Clone () As Stroke" />
<MemberSignature Language="F#" Value="abstract member Clone : unit -> System.Windows.Ink.Stroke
override this.Clone : unit -> System.Windows.Ink.Stroke" Usage="stroke.Clone " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual System::Windows::Ink::Stroke ^ Clone();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.Stroke</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns a deep copy of the existing <see cref="T:System.Windows.Ink.Stroke" /> object.</summary>
<returns>The new <see cref="T:System.Windows.Ink.Stroke" /> object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The properties of an object that is a deep copy of another object have the same values as the properties of the original object.
## Examples
The following example demonstrates how to get a copy of the current <xref:System.Windows.Ink.Stroke> object.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet5":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="ContainsPropertyData">
<MemberSignature Language="C#" Value="public bool ContainsPropertyData (Guid propertyDataId);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool ContainsPropertyData(valuetype System.Guid propertyDataId) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.ContainsPropertyData(System.Guid)" />
<MemberSignature Language="VB.NET" Value="Public Function ContainsPropertyData (propertyDataId As Guid) As Boolean" />
<MemberSignature Language="F#" Value="member this.ContainsPropertyData : Guid -> bool" Usage="stroke.ContainsPropertyData propertyDataId" />
<MemberSignature Language="C++ CLI" Value="public:
 bool ContainsPropertyData(Guid propertyDataId);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyDataId" Type="System.Guid" />
</Parameters>
<Docs>
<param name="propertyDataId">The unique identifier for the property.</param>
<summary>Returns a value that indicates whether the <see cref="T:System.Windows.Ink.Stroke" /> object contains the specified custom property.</summary>
<returns>Returns <see langword="true" /> if the custom property exists; otherwise, returns <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates how to determine whether a <xref:System.Windows.Ink.Stroke> object has a custom property.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet3":::
]]></format>
</remarks>
<altmember cref="M:System.Windows.Ink.Stroke.AddPropertyData(System.Guid,System.Object)" />
<altmember cref="M:System.Windows.Ink.Stroke.GetPropertyData(System.Guid)" />
<altmember cref="M:System.Windows.Ink.Stroke.RemovePropertyData(System.Guid)" />
</Docs>
</Member>
<MemberGroup MemberName="Draw">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Renders the <see cref="T:System.Windows.Ink.Stroke" /> object based upon a <see cref="T:System.Windows.Media.DrawingContext" />.</summary>
</Docs>
</MemberGroup>
<Member MemberName="Draw">
<MemberSignature Language="C#" Value="public void Draw (System.Windows.Media.DrawingContext context);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Draw(class System.Windows.Media.DrawingContext context) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.Draw(System.Windows.Media.DrawingContext)" />
<MemberSignature Language="VB.NET" Value="Public Sub Draw (context As DrawingContext)" />
<MemberSignature Language="F#" Value="member this.Draw : System.Windows.Media.DrawingContext -> unit" Usage="stroke.Draw context" />
<MemberSignature Language="C++ CLI" Value="public:
 void Draw(System::Windows::Media::DrawingContext ^ context);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="System.Windows.Media.DrawingContext" />
</Parameters>
<Docs>
<param name="context">The <see cref="T:System.Windows.Media.DrawingContext" /> object onto which the stroke will be rendered.</param>
<summary>Renders the <see cref="T:System.Windows.Ink.Stroke" /> object based upon the specified <see cref="T:System.Windows.Media.DrawingContext" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates how to draw a <xref:System.Windows.Ink.Stroke> object by using a <xref:System.Windows.Media.DrawingContext>.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/Draw/Program.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawTransform/VisualBasic/Module1.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Draw">
<MemberSignature Language="C#" Value="public void Draw (System.Windows.Media.DrawingContext drawingContext, System.Windows.Ink.DrawingAttributes drawingAttributes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Draw(class System.Windows.Media.DrawingContext drawingContext, class System.Windows.Ink.DrawingAttributes drawingAttributes) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.Draw(System.Windows.Media.DrawingContext,System.Windows.Ink.DrawingAttributes)" />
<MemberSignature Language="VB.NET" Value="Public Sub Draw (drawingContext As DrawingContext, drawingAttributes As DrawingAttributes)" />
<MemberSignature Language="F#" Value="member this.Draw : System.Windows.Media.DrawingContext * System.Windows.Ink.DrawingAttributes -> unit" Usage="stroke.Draw (drawingContext, drawingAttributes)" />
<MemberSignature Language="C++ CLI" Value="public:
 void Draw(System::Windows::Media::DrawingContext ^ drawingContext, System::Windows::Ink::DrawingAttributes ^ drawingAttributes);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="drawingContext" Type="System.Windows.Media.DrawingContext" />
<Parameter Name="drawingAttributes" Type="System.Windows.Ink.DrawingAttributes" />
</Parameters>
<Docs>
<param name="drawingContext">The <see cref="T:System.Windows.Media.DrawingContext" /> object onto which the stroke will be rendered.</param>
<param name="drawingAttributes">The <see cref="T:System.Windows.Ink.DrawingAttributes" /> object defining the attributes of the stroke that is drawn.</param>
<summary>Renders the <see cref="T:System.Windows.Ink.Stroke" /> object based upon the specified <see cref="T:System.Windows.Media.DrawingContext" /> and <see cref="T:System.Windows.Ink.DrawingAttributes" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates how to draw a <xref:System.Windows.Ink.Stroke> object by using a <xref:System.Windows.Media.DrawingContext> and <xref:System.Windows.Ink.DrawingAttributes>.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/Draw/Program.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/DrawTransform/VisualBasic/Module1.vb" id="Snippet2":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawCore">
<MemberSignature Language="C#" Value="protected virtual void DrawCore (System.Windows.Media.DrawingContext drawingContext, System.Windows.Ink.DrawingAttributes drawingAttributes);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void DrawCore(class System.Windows.Media.DrawingContext drawingContext, class System.Windows.Ink.DrawingAttributes drawingAttributes) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.DrawCore(System.Windows.Media.DrawingContext,System.Windows.Ink.DrawingAttributes)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub DrawCore (drawingContext As DrawingContext, drawingAttributes As DrawingAttributes)" />
<MemberSignature Language="F#" Value="abstract member DrawCore : System.Windows.Media.DrawingContext * System.Windows.Ink.DrawingAttributes -> unit
override this.DrawCore : System.Windows.Media.DrawingContext * System.Windows.Ink.DrawingAttributes -> unit" Usage="stroke.DrawCore (drawingContext, drawingAttributes)" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual void DrawCore(System::Windows::Media::DrawingContext ^ drawingContext, System::Windows::Ink::DrawingAttributes ^ drawingAttributes);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="drawingContext" Type="System.Windows.Media.DrawingContext" />
<Parameter Name="drawingAttributes" Type="System.Windows.Ink.DrawingAttributes" />
</Parameters>
<Docs>
<param name="drawingContext">The <see cref="T:System.Windows.Media.DrawingContext" /> object onto which the stroke will be rendered.</param>
<param name="drawingAttributes">The <see cref="T:System.Windows.Ink.DrawingAttributes" /> object defining the attributes of the stroke that is drawn.</param>
<summary>Renders the <see cref="T:System.Windows.Ink.Stroke" /> on the specified <see cref="T:System.Windows.Media.DrawingContext" /> using the specified <see cref="T:System.Windows.Ink.DrawingAttributes" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Override the <xref:System.Windows.Ink.Stroke.DrawCore%2A> method to perform custom drawing when you inherit from the <xref:System.Windows.Ink.Stroke> class.
## Examples
The following example demonstrates how to draw a circle at each <xref:System.Windows.Input.StylusPoint> of a <xref:System.Windows.Ink.Stroke>. If the <xref:System.Windows.Ink.DrawingAttributes.FitToCurve%2A> property is set to `true`, the <xref:System.Windows.Ink.Stroke.GetBezierStylusPoints%2A> is used to get the stylus points. Otherwise, the <xref:System.Windows.Ink.Stroke.StylusPoints%2A> property is used.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyStroke.cs" id="Snippet23":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyStroke.vb" id="Snippet23":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="DrawingAttributes">
<MemberSignature Language="C#" Value="public System.Windows.Ink.DrawingAttributes DrawingAttributes { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.Ink.DrawingAttributes DrawingAttributes" />
<MemberSignature Language="DocId" Value="P:System.Windows.Ink.Stroke.DrawingAttributes" />
<MemberSignature Language="VB.NET" Value="Public Property DrawingAttributes As DrawingAttributes" />
<MemberSignature Language="F#" Value="member this.DrawingAttributes : System.Windows.Ink.DrawingAttributes with get, set" Usage="System.Windows.Ink.Stroke.DrawingAttributes" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Windows::Ink::DrawingAttributes ^ DrawingAttributes { System::Windows::Ink::DrawingAttributes ^ get(); void set(System::Windows::Ink::DrawingAttributes ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Ink.DrawingAttributes</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the <see cref="T:System.Windows.Ink.DrawingAttributes" /> for the <see cref="T:System.Windows.Ink.Stroke" /> object.</summary>
<value>To be added.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
These attributes, such as color and width, are applied to the <xref:System.Windows.Ink.Stroke> object as it is drawn.
Changing <xref:System.Windows.Ink.Stroke.DrawingAttributes%2A> causes the <xref:System.Windows.Ink.Stroke.DrawingAttributesChanged> event to fire.
## Examples
The following example sets the <xref:System.Windows.Ink.Stroke.DrawingAttributes%2A> to make a stroke green.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet7":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet7":::
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">The set value is <see langword="null" />.</exception>
<altmember cref="M:System.Windows.Ink.Stroke.OnDrawingAttributesChanged(System.Windows.Ink.PropertyDataChangedEventArgs)" />
</Docs>
</Member>
<Member MemberName="DrawingAttributesChanged">
<MemberSignature Language="C#" Value="public event System.Windows.Ink.PropertyDataChangedEventHandler DrawingAttributesChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Ink.PropertyDataChangedEventHandler DrawingAttributesChanged" />
<MemberSignature Language="DocId" Value="E:System.Windows.Ink.Stroke.DrawingAttributesChanged" />
<MemberSignature Language="VB.NET" Value="Public Custom Event DrawingAttributesChanged As PropertyDataChangedEventHandler " FrameworkAlternate="netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<MemberSignature Language="F#" Value="member this.DrawingAttributesChanged : System.Windows.Ink.PropertyDataChangedEventHandler " Usage="member this.DrawingAttributesChanged : System.Windows.Ink.PropertyDataChangedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event System::Windows::Ink::PropertyDataChangedEventHandler ^ DrawingAttributesChanged;" />
<MemberSignature Language="VB.NET" Value="Public Event DrawingAttributesChanged As PropertyDataChangedEventHandler " FrameworkAlternate="netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.PropertyDataChangedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the <see cref="P:System.Windows.Ink.Stroke.DrawingAttributes" /> associated with the <see cref="T:System.Windows.Ink.Stroke" /> object change.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.PropertyDataChangedEventArgs> contains information about the property that changed. You can compare the <xref:System.Windows.Ink.PropertyDataChangedEventArgs.PropertyGuid%2A> property against the members of <xref:System.Windows.Ink.DrawingAttributeIds> to see which value changed.
## Examples
The following example demonstrates how to add a handler for this event.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet8":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet8":::
]]></format>
</remarks>
<altmember cref="P:System.Windows.Ink.Stroke.DrawingAttributes" />
<altmember cref="E:System.Windows.Ink.Stroke.DrawingAttributesReplaced" />
<altmember cref="M:System.Windows.Ink.Stroke.OnDrawingAttributesChanged(System.Windows.Ink.PropertyDataChangedEventArgs)" />
</Docs>
</Member>
<Member MemberName="DrawingAttributesReplaced">
<MemberSignature Language="C#" Value="public event System.Windows.Ink.DrawingAttributesReplacedEventHandler DrawingAttributesReplaced;" />
<MemberSignature Language="ILAsm" Value=".event class System.Windows.Ink.DrawingAttributesReplacedEventHandler DrawingAttributesReplaced" />
<MemberSignature Language="DocId" Value="E:System.Windows.Ink.Stroke.DrawingAttributesReplaced" />
<MemberSignature Language="VB.NET" Value="Public Custom Event DrawingAttributesReplaced As DrawingAttributesReplacedEventHandler " FrameworkAlternate="netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<MemberSignature Language="F#" Value="member this.DrawingAttributesReplaced : System.Windows.Ink.DrawingAttributesReplacedEventHandler " Usage="member this.DrawingAttributesReplaced : System.Windows.Ink.DrawingAttributesReplacedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event System::Windows::Ink::DrawingAttributesReplacedEventHandler ^ DrawingAttributesReplaced;" />
<MemberSignature Language="VB.NET" Value="Public Event DrawingAttributesReplaced As DrawingAttributesReplacedEventHandler " FrameworkAlternate="netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.DrawingAttributesReplacedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Occurs when the drawing attributes of a <see cref="T:System.Windows.Ink.Stroke" /> object are replaced.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates how to add a handler for this event.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet9":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet9":::
]]></format>
</remarks>
<altmember cref="P:System.Windows.Ink.Stroke.DrawingAttributes" />
<altmember cref="M:System.Windows.Ink.Stroke.OnDrawingAttributesReplaced(System.Windows.Ink.DrawingAttributesReplacedEventArgs)" />
</Docs>
</Member>
<Member MemberName="GetBezierStylusPoints">
<MemberSignature Language="C#" Value="public System.Windows.Input.StylusPointCollection GetBezierStylusPoints ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Input.StylusPointCollection GetBezierStylusPoints() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetBezierStylusPoints" />
<MemberSignature Language="VB.NET" Value="Public Function GetBezierStylusPoints () As StylusPointCollection" />
<MemberSignature Language="F#" Value="member this.GetBezierStylusPoints : unit -> System.Windows.Input.StylusPointCollection" Usage="stroke.GetBezierStylusPoints " />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Input::StylusPointCollection ^ GetBezierStylusPoints();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Input.StylusPointCollection</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the stylus points the <see cref="T:System.Windows.Ink.Stroke" /> uses when <see cref="P:System.Windows.Ink.DrawingAttributes.FitToCurve" /> is <see langword="true" />.</summary>
<returns>A <see cref="T:System.Windows.Input.StylusPointCollection" /> that contains the stylus points along the spine of a <see cref="T:System.Windows.Ink.Stroke" /> when <see cref="P:System.Windows.Ink.DrawingAttributes.FitToCurve" /> is <see langword="true" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.Stroke.GetBezierStylusPoints%2A> method returns a new <xref:System.Windows.Input.StylusPointCollection> that contains the stylus points that the <xref:System.Windows.Ink.Stroke> uses when the <xref:System.Windows.Ink.DrawingAttributes.FitToCurve%2A> property on the <xref:System.Windows.Ink.Stroke.DrawingAttributes%2A> property is set to `true`. To get the stylus points that are used when <xref:System.Windows.Ink.DrawingAttributes.FitToCurve%2A> is set to `false`, use the <xref:System.Windows.Ink.Stroke.StylusPoints%2A> property.
## Examples
The following example demonstrates how to draw a circle at each <xref:System.Windows.Input.StylusPoint> of a <xref:System.Windows.Ink.Stroke>. If the <xref:System.Windows.Ink.DrawingAttributes.FitToCurve%2A> property is set to `true`, the <xref:System.Windows.Ink.Stroke.GetBezierStylusPoints%2A> is used to get the stylus points. Otherwise, the <xref:System.Windows.Ink.Stroke.StylusPoints%2A> property is used.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyStroke.cs" id="Snippet23":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyStroke.vb" id="Snippet23":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetBounds">
<MemberSignature Language="C#" Value="public virtual System.Windows.Rect GetBounds ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype System.Windows.Rect GetBounds() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetBounds" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function GetBounds () As Rect" />
<MemberSignature Language="F#" Value="abstract member GetBounds : unit -> System.Windows.Rect
override this.GetBounds : unit -> System.Windows.Rect" Usage="stroke.GetBounds " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual System::Windows::Rect GetBounds();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Rect</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves the bounding box for the <see cref="T:System.Windows.Ink.Stroke" /> object.</summary>
<returns>A <see cref="T:System.Windows.Rect" /> structure defining the bounding box for the <see cref="T:System.Windows.Ink.Stroke" /> object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates how to get the boundary rectangle for a <xref:System.Windows.Ink.Stroke> object.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyBorder.cs" id="Snippet11":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyBorder.vb" id="Snippet11":::
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="GetClipResult">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Returns segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are within the specified area.</summary>
</Docs>
</MemberGroup>
<Member MemberName="GetClipResult">
<MemberSignature Language="C#" Value="public System.Windows.Ink.StrokeCollection GetClipResult (System.Collections.Generic.IEnumerable<System.Windows.Point> lassoPoints);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Ink.StrokeCollection GetClipResult(class System.Collections.Generic.IEnumerable`1<valuetype System.Windows.Point> lassoPoints) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetClipResult(System.Collections.Generic.IEnumerable{System.Windows.Point})" />
<MemberSignature Language="VB.NET" Value="Public Function GetClipResult (lassoPoints As IEnumerable(Of Point)) As StrokeCollection" />
<MemberSignature Language="F#" Value="member this.GetClipResult : seq<System.Windows.Point> -> System.Windows.Ink.StrokeCollection" Usage="stroke.GetClipResult lassoPoints" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Ink::StrokeCollection ^ GetClipResult(System::Collections::Generic::IEnumerable<System::Windows::Point> ^ lassoPoints);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.StrokeCollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="lassoPoints" Type="System.Collections.Generic.IEnumerable<System.Windows.Point>" />
</Parameters>
<Docs>
<param name="lassoPoints">The points that specify the line which defines where to clip.</param>
<summary>Returns segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are within the specified bounds.</summary>
<returns>A <see cref="T:System.Windows.Ink.StrokeCollection" /> that contains copies of the segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are within the specified bounds.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.Stroke.GetClipResult%2A> method returns a <xref:System.Windows.Ink.StrokeCollection> that contains strokes that represent the segments of the <xref:System.Windows.Ink.Stroke> that is within `lassoPoints`. <xref:System.Windows.Ink.Stroke.GetClipResult%2A> does not change the original <xref:System.Windows.Ink.Stroke>.
The <xref:System.Windows.Ink.Stroke.GetClipResult%2A> method connects the first and last points in `lassoPoints` to create the lasso.
## Examples
The following example removes the ink that is outside of the specified bounds.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/GetClipResult/Program.cs" id="Snippet6":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/HitTestSample/VisualBasic/Module1.vb" id="Snippet6":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetClipResult">
<MemberSignature Language="C#" Value="public System.Windows.Ink.StrokeCollection GetClipResult (System.Windows.Rect bounds);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Ink.StrokeCollection GetClipResult(valuetype System.Windows.Rect bounds) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetClipResult(System.Windows.Rect)" />
<MemberSignature Language="VB.NET" Value="Public Function GetClipResult (bounds As Rect) As StrokeCollection" />
<MemberSignature Language="F#" Value="member this.GetClipResult : System.Windows.Rect -> System.Windows.Ink.StrokeCollection" Usage="stroke.GetClipResult bounds" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Ink::StrokeCollection ^ GetClipResult(System::Windows::Rect bounds);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.StrokeCollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bounds" Type="System.Windows.Rect" />
</Parameters>
<Docs>
<param name="bounds">A <see cref="T:System.Windows.Rect" /> that specifies the area to clip.</param>
<summary>Returns segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are within the specified rectangle.</summary>
<returns>A <see cref="T:System.Windows.Ink.StrokeCollection" /> that contains copies of the segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are within the bounds of <paramref name="bounds" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.Stroke.GetClipResult%2A> method returns a <xref:System.Windows.Ink.StrokeCollection> that contains strokes that represent the segments of the <xref:System.Windows.Ink.Stroke> that is within `bounds`. <xref:System.Windows.Ink.Stroke.GetClipResult%2A> does not change the original <xref:System.Windows.Ink.Stroke>.
## Examples
The following example removes the ink that is outside of the specified bounds.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/GetClipResult/Program.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/HitTestSample/VisualBasic/Module1.vb" id="Snippet5":::
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="GetEraseResult">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Returns the segments of the current <see cref="T:System.Windows.Ink.Stroke" /> after part of the <see cref="T:System.Windows.Ink.Stroke" /> is erased.</summary>
</Docs>
</MemberGroup>
<Member MemberName="GetEraseResult">
<MemberSignature Language="C#" Value="public System.Windows.Ink.StrokeCollection GetEraseResult (System.Collections.Generic.IEnumerable<System.Windows.Point> lassoPoints);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Ink.StrokeCollection GetEraseResult(class System.Collections.Generic.IEnumerable`1<valuetype System.Windows.Point> lassoPoints) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetEraseResult(System.Collections.Generic.IEnumerable{System.Windows.Point})" />
<MemberSignature Language="VB.NET" Value="Public Function GetEraseResult (lassoPoints As IEnumerable(Of Point)) As StrokeCollection" />
<MemberSignature Language="F#" Value="member this.GetEraseResult : seq<System.Windows.Point> -> System.Windows.Ink.StrokeCollection" Usage="stroke.GetEraseResult lassoPoints" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Ink::StrokeCollection ^ GetEraseResult(System::Collections::Generic::IEnumerable<System::Windows::Point> ^ lassoPoints);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.StrokeCollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="lassoPoints" Type="System.Collections.Generic.IEnumerable<System.Windows.Point>" />
</Parameters>
<Docs>
<param name="lassoPoints">An array of type <see cref="T:System.Windows.Point" /> that specifies the area to erase.</param>
<summary>Returns segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are outside the specified bounds.</summary>
<returns>A <see cref="T:System.Windows.Ink.StrokeCollection" /> that contains the segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are outside the specified bounds.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.Stroke.GetEraseResult%2A> method returns a <xref:System.Windows.Ink.StrokeCollection> that contains strokes that represent the segments of the <xref:System.Windows.Ink.Stroke> that are outside of `lassoPoints`. <xref:System.Windows.Ink.Stroke.GetEraseResult%2A> does not change the original <xref:System.Windows.Ink.Stroke>.
The <xref:System.Windows.Ink.Stroke.GetClipResult%2A> method connects the first and last points in `lassoPoints` to create the lasso.
## Examples
The following example removes the ink that is within the specified bounds.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/GetClipResult/Program.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/HitTestSample/VisualBasic/Module1.vb" id="Snippet1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetEraseResult">
<MemberSignature Language="C#" Value="public System.Windows.Ink.StrokeCollection GetEraseResult (System.Windows.Rect bounds);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Ink.StrokeCollection GetEraseResult(valuetype System.Windows.Rect bounds) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetEraseResult(System.Windows.Rect)" />
<MemberSignature Language="VB.NET" Value="Public Function GetEraseResult (bounds As Rect) As StrokeCollection" />
<MemberSignature Language="F#" Value="member this.GetEraseResult : System.Windows.Rect -> System.Windows.Ink.StrokeCollection" Usage="stroke.GetEraseResult bounds" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Ink::StrokeCollection ^ GetEraseResult(System::Windows::Rect bounds);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.StrokeCollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bounds" Type="System.Windows.Rect" />
</Parameters>
<Docs>
<param name="bounds">A <see cref="T:System.Windows.Rect" /> that specifies the area to erase.</param>
<summary>Returns segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are outside the specified rectangle.</summary>
<returns>A <see cref="T:System.Windows.Ink.StrokeCollection" /> that contains the segments of the current <see cref="T:System.Windows.Ink.Stroke" /> that are outside the bounds of the specified <see cref="T:System.Windows.Rect" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.Stroke.GetEraseResult%2A> method returns a <xref:System.Windows.Ink.StrokeCollection> that contains strokes that represent the segments of the <xref:System.Windows.Ink.Stroke> that are outside of `bounds`. <xref:System.Windows.Ink.Stroke.GetEraseResult%2A> does not change the original <xref:System.Windows.Ink.Stroke>.
## Examples
The following example removes the ink that is within the specified bounds.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/GetClipResult/Program.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/HitTestSample/VisualBasic/Module1.vb" id="Snippet4":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetEraseResult">
<MemberSignature Language="C#" Value="public System.Windows.Ink.StrokeCollection GetEraseResult (System.Collections.Generic.IEnumerable<System.Windows.Point> eraserPath, System.Windows.Ink.StylusShape eraserShape);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Ink.StrokeCollection GetEraseResult(class System.Collections.Generic.IEnumerable`1<valuetype System.Windows.Point> eraserPath, class System.Windows.Ink.StylusShape eraserShape) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetEraseResult(System.Collections.Generic.IEnumerable{System.Windows.Point},System.Windows.Ink.StylusShape)" />
<MemberSignature Language="VB.NET" Value="Public Function GetEraseResult (eraserPath As IEnumerable(Of Point), eraserShape As StylusShape) As StrokeCollection" />
<MemberSignature Language="F#" Value="member this.GetEraseResult : seq<System.Windows.Point> * System.Windows.Ink.StylusShape -> System.Windows.Ink.StrokeCollection" Usage="stroke.GetEraseResult (eraserPath, eraserShape)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Ink::StrokeCollection ^ GetEraseResult(System::Collections::Generic::IEnumerable<System::Windows::Point> ^ eraserPath, System::Windows::Ink::StylusShape ^ eraserShape);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Ink.StrokeCollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eraserPath" Type="System.Collections.Generic.IEnumerable<System.Windows.Point>" />
<Parameter Name="eraserShape" Type="System.Windows.Ink.StylusShape" />
</Parameters>
<Docs>
<param name="eraserPath">An array of type <see cref="T:System.Windows.Point" /> that specifies the path that dissects the <see cref="T:System.Windows.Ink.Stroke" />.</param>
<param name="eraserShape">A <see cref="T:System.Windows.Ink.StylusShape" /> that specifies the shape of the eraser.</param>
<summary>Returns the segments of the current <see cref="T:System.Windows.Ink.Stroke" /> after it is dissected by the designated path using the specified <see cref="T:System.Windows.Ink.StylusShape" />.</summary>
<returns>A <see cref="T:System.Windows.Ink.StrokeCollection" /> that contains copies of the segments of the current <see cref="T:System.Windows.Ink.Stroke" /> after it is dissected by the specified path.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.Stroke.GetEraseResult%2A> method uses `eraserShape` to hit test the stroke along `eraserPath` and returns a <xref:System.Windows.Ink.StrokeCollection> that represent dissected segments. <xref:System.Windows.Ink.Stroke.GetEraseResult%2A> does not change the original <xref:System.Windows.Ink.Stroke>.
## Examples
The following example demonstrates how to erase the ink that intersects a specified path.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/GetClipResult/Program.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/HitTestSample/VisualBasic/Module1.vb" id="Snippet2":::
]]></format>
</remarks>
</Docs>
</Member>
<MemberGroup MemberName="GetGeometry">
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Gets the <see cref="T:System.Windows.Media.Geometry" /> of the current <see cref="T:System.Windows.Ink.Stroke" />.</summary>
</Docs>
</MemberGroup>
<Member MemberName="GetGeometry">
<MemberSignature Language="C#" Value="public System.Windows.Media.Geometry GetGeometry ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Media.Geometry GetGeometry() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetGeometry" />
<MemberSignature Language="VB.NET" Value="Public Function GetGeometry () As Geometry" />
<MemberSignature Language="F#" Value="member this.GetGeometry : unit -> System.Windows.Media.Geometry" Usage="stroke.GetGeometry " />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Media::Geometry ^ GetGeometry();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Media.Geometry</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets the <see cref="T:System.Windows.Media.Geometry" /> of the current <see cref="T:System.Windows.Ink.Stroke" />.</summary>
<returns>A <see cref="T:System.Windows.Media.Geometry" /> that represents the <see cref="T:System.Windows.Ink.Stroke" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Windows.Ink.Stroke.GetGeometry%2A> method to get a <xref:System.Windows.Media.PathGeometry> to customize the shape of the <xref:System.Windows.Ink.Stroke>. Consider caching the <xref:System.Windows.Media.Geometry> to avoid calling <xref:System.Windows.Ink.Stroke.GetGeometry%2A> multiple times, which may impact performance.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetGeometry">
<MemberSignature Language="C#" Value="public System.Windows.Media.Geometry GetGeometry (System.Windows.Ink.DrawingAttributes drawingAttributes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Windows.Media.Geometry GetGeometry(class System.Windows.Ink.DrawingAttributes drawingAttributes) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetGeometry(System.Windows.Ink.DrawingAttributes)" />
<MemberSignature Language="VB.NET" Value="Public Function GetGeometry (drawingAttributes As DrawingAttributes) As Geometry" />
<MemberSignature Language="F#" Value="member this.GetGeometry : System.Windows.Ink.DrawingAttributes -> System.Windows.Media.Geometry" Usage="stroke.GetGeometry drawingAttributes" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Media::Geometry ^ GetGeometry(System::Windows::Ink::DrawingAttributes ^ drawingAttributes);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Media.Geometry</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="drawingAttributes" Type="System.Windows.Ink.DrawingAttributes" />
</Parameters>
<Docs>
<param name="drawingAttributes">The <see cref="T:System.Windows.Ink.DrawingAttributes" /> that determines the <see cref="T:System.Windows.Media.Geometry" /> of the <see cref="T:System.Windows.Ink.Stroke" />.</param>
<summary>Gets the <see cref="T:System.Windows.Media.Geometry" /> of the current <see cref="T:System.Windows.Ink.Stroke" /> using the specified <see cref="T:System.Windows.Ink.DrawingAttributes" />.</summary>
<returns>A <see cref="T:System.Windows.Media.Geometry" /> that represents the <see cref="T:System.Windows.Ink.Stroke" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Ink.Stroke.GetGeometry%2A> method uses the <xref:System.Windows.Ink.DrawingAttributes.Width%2A>, <xref:System.Windows.Ink.DrawingAttributes.Height%2A>, <xref:System.Windows.Ink.DrawingAttributes.FitToCurve%2A>, <xref:System.Windows.Ink.DrawingAttributes.StylusTip%2A> and <xref:System.Windows.Ink.DrawingAttributes.StylusTipTransform%2A> properties of `drawingAttributes` to determine the <xref:System.Windows.Media.Geometry>. Consider caching the <xref:System.Windows.Media.Geometry> to avoid calling <xref:System.Windows.Ink.Stroke.GetGeometry%2A> multiple times, which may impact performance.
## Examples
The following example demonstrates how to draw a circle at each <xref:System.Windows.Input.StylusPoint> of a <xref:System.Windows.Ink.Stroke>. If the <xref:System.Windows.Ink.DrawingAttributes.FitToCurve%2A> property is set to `true`, the <xref:System.Windows.Ink.Stroke.GetBezierStylusPoints%2A> is used to get the stylus points. Otherwise, the <xref:System.Windows.Ink.Stroke.StylusPoints%2A> property is used.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Ink/Stroke/.ctor/MyStroke.cs" id="Snippet23":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/StrokeSnippets/VisualBasic/MyStroke.vb" id="Snippet23":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetPropertyData">
<MemberSignature Language="C#" Value="public object GetPropertyData (Guid propertyDataId);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object GetPropertyData(valuetype System.Guid propertyDataId) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Ink.Stroke.GetPropertyData(System.Guid)" />
<MemberSignature Language="VB.NET" Value="Public Function GetPropertyData (propertyDataId As Guid) As Object" />
<MemberSignature Language="F#" Value="member this.GetPropertyData : Guid -> obj" Usage="stroke.GetPropertyData propertyDataId" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ GetPropertyData(Guid propertyDataId);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationCore</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>