-
Notifications
You must be signed in to change notification settings - Fork 42
/
UITextView.xml
4820 lines (4785 loc) · 267 KB
/
UITextView.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="UITextView" FullName="UIKit.UITextView">
<TypeSignature Language="C#" Value="public class UITextView : UIKit.UIScrollView, IDisposable, UIKit.IUIContentSizeCategoryAdjusting, UIKit.IUITextDraggable, UIKit.IUITextDroppable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit UITextView extends UIKit.UIScrollView implements class Foundation.INSCoding, class ObjCRuntime.INativeObject, class System.IDisposable, class UIKit.IUIContentSizeCategoryAdjusting, class UIKit.IUIKeyInput, class UIKit.IUIPasteConfigurationSupporting, class UIKit.IUITextDraggable, class UIKit.IUITextDroppable, class UIKit.IUITextInput, class UIKit.IUITextInputTraits, class UIKit.IUITextPasteConfigurationSupporting" />
<TypeSignature Language="DocId" Value="T:UIKit.UITextView" />
<TypeSignature Language="F#" Value="type UITextView = class
 inherit UIScrollView
 interface IUITextInputTraits
 interface INativeObject
 interface IDisposable
 interface INSCoding
 interface IUIContentSizeCategoryAdjusting
 interface IUIKeyInput
 interface IUIPasteConfigurationSupporting
 interface IUITextDraggable
 interface IUITextInput
 interface IUITextDroppable
 interface IUITextPasteConfigurationSupporting" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>UIKit.UIScrollView</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Foundation.INSCoding</InterfaceName>
</Interface>
<Interface>
<InterfaceName>ObjCRuntime.INativeObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUIContentSizeCategoryAdjusting</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUIKeyInput</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUIPasteConfigurationSupporting</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUITextDraggable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUITextDroppable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUITextInput</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUITextInputTraits</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUITextPasteConfigurationSupporting</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>Foundation.Register("UITextView", true)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>A <see cref="T:UIKit.UIControl" /> that displays a scrollable multi-line text editor.</summary>
<remarks>
<para>The <see cref="T:UIKit.UITextView" /> is a scrollable, multi-line text view that can display styled text and can be editable.</para>
<format type="text/html">
<h2>Editing</h2>
</format>
<para>If <see cref="P:UIKit.UITextView.Editable" /> is <see langword="true" />, the text view will be editable by the application user. When the application user taps on the view, it becomes the first responder and displays the system keyboard. It is the application developer's responsibility to ensure that the keyboard does not obscure functionality (e.g., by scrolling or rearranging views). To make the keyboard disappear, the application developer must have the <see cref="T:UIKit.UITextView" /> resign first responder status (by calling <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=UIKit%20UIResponder%20Resign%20First%20Responder&scope=Xamarin" title="M:UIKit.UIResponder.ResignFirstResponder*">M:UIKit.UIResponder.ResignFirstResponder*</a></format>).</para>
<para>Application developers can use <see cref="T:UIKit.UIKeyboard.Notifications" /> to calculate the necessary scrolling or rearranging of views associated with the appearance and disappearance of the keyboard. </para>
<para>Since the <see cref="T:UIKit.UITextView" /> is multiline, unlike the <see cref="T:UIKit.UITextField" />, the keyboard's <c>return</c> key cannot be replaced by a <c>done</c> key and there is no equivalent to the <see cref="P:UIKit.UITextField.ShouldReturn" /> property. A common idiom for a <see cref="T:UIKit.UITextView" /> is to "end editing when the user touches anywhere outside the text field." This can be done by overriding <see cref="M:UIKit.UIResponder.TouchesBegan(Foundation.NSSet,UIKit.UIEvent)" /> in the containing <see cref="T:UIKit.UIView" /> and calling <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=UIKit%20UIView%20End%20Editing&scope=Xamarin" title="M:UIKit.UIView.EndEditing*">M:UIKit.UIView.EndEditing*</a></format>, as shown in the following example:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
public class MyView : UIView
{
UITextView textView;
public MyView()
{
textView = new UITextView(new RectangleF(10, 44, UIScreen.MainScreen.Bounds.Width - 20, 300)){
Editable = true
};
AddSubview(textView);
}
public override void TouchesBegan(NSSet touches, UIEvent evt)
{
EndEditing(true);
}
}
]]></code>
</example>
<format type="text/html">
<h2>Text Kit</h2>
</format>
<para>iOS 7 introduced "Text Kit," a broad set of APIs and modifications of existing classes, built on <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=Core%20Text&scope=Xamarin" title="N:CoreText">N:CoreText</a></format>, that greatly expands the typographical flexibility of iOS.</para>
<para>
<see cref="T:UIKit.UITextView" />s are intended to display large amounts of text. The text is stored in <see cref="T:UIKit.NSTextStorage" /> objects and layout of the text is managed by a <see cref="T:UIKit.NSLayoutManager" />, which lays out the text in an area defined by <see cref="T:UIKit.NSTextContainer" /> objects. </para>
<para>Mapped to the Model-View-Controller pattern, the <see cref="T:UIKit.NSLayoutManager" /> is the Controller, the <see cref="T:UIKit.UITextView" /> is the View, and <see cref="T:UIKit.NSTextStorage" /> and <see cref="T:UIKit.NSTextContainer" />s are Model elements.</para>
<para>
<see cref="T:UIKit.NSTextStorage" /> is a subclass of <see cref="T:Foundation.NSMutableAttributedString" /> and is responsible for holding the string, with various text styles. <see cref="T:UIKit.NSTextContainer" /> objects are responsible for modeling the geometric layout of the page. The <see cref="T:UIKit.NSLayoutManager" /> translates characters in the <see cref="T:UIKit.NSTextStorage" /> into glyphs, lays those out in lines according to the constraints of the <see cref="T:UIKit.NSTextContainer" />s, and coordinates the display of one or more <see cref="T:UIKit.UITextView" /> objects.</para>
<para>The following example shows the basic use of two important Text Kit features: multiple text styles and exclusion paths:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var size = UIScreen.MainScreen.Bounds.Size;
var atts = new UIStringAttributes();
atts.ForegroundColor = UIColor.Blue;
var txt = "\nText Kit.\n Lorem ipsum dolor ... auctor.";
var attributedString = new NSMutableAttributedString(txt, atts);
attributedString.BeginEditing();
attributedString.AddAttribute(UIStringAttributeKey.ForegroundColor, UIColor.Red, new NSRange(0, 10));
attributedString.AddAttribute(UIStringAttributeKey.Font, UIFont.PreferredFontForTextStyle(UIFontTextStyle.Headline), new NSRange(0, 10));
attributedString.EndEditing();
//NSTextStorage == MVC Model (partial)
var storage = new NSTextStorage();
storage.SetString(attributedString);
//NSLayoutManager == MVC Controller
var layoutManager = new NSLayoutManager();
storage.AddLayoutManager(layoutManager);
//NSTextContainer defines a logical block (page, column)
var container = new NSTextContainer(size);
layoutManager.AddTextContainer(container);
//UITextView == MVC View
TextView = new UITextView(new RectangleF(new PointF(0, 0), size), container);
TextView.AttributedText = attributedString;
TextView.ScrollEnabled = false;
TextView.Editable = false;
TextView.UserInteractionEnabled = false;
AddSubview(TextView);
//Add an image overlay, with exclusion path..
var logoRect = new RectangleF(96, 195, 95, 90);
var img = UIImage.FromBundle("xam.png");
var imgView = new UIImageView(logoRect);
imgView.Image = img;
AddSubview(imgView);
//Note exclusion path in container coordinate system...
var xRect = TextView.ConvertRectFromView(logoRect, this);
var hexPath = HexPath(xRect);
container.ExclusionPaths = new UIBezierPath[] { hexPath };
}
]]></code>
</example>
<para>iOS 6 added multiple text-style capability to <see cref="T:UIKit.UITextView" />. To use multiple styles, application developers must use the <see cref="P:UIKit.UITextView.AttributedText" /> property. The <see cref="P:UIKit.UITextView.Font" />, <see cref="P:UIKit.UITextView.TextColor" />, and <see cref="P:UIKit.UITextView.TextAlignment" /> properties apply to all the text in the <see cref="T:UIKit.UITextView" />.</para>
<format type="text/html">
<br />
</format>
<para>
The Xamarin API supports two styles of event notification: the Objective-C style that uses a delegate class or the C# style using event notifications.
</para>
<para>
The C# style allows the user to add or remove event handlers at runtime by assigning to the events of properties of this class. Event handlers can be anyone of a method, an anonymous methods or a lambda expression. Using the C# style events or properties will override any manual settings to the Objective-C Delegate or WeakDelegate settings.
</para>
<para>The Objective-C style requires the user to create a new class derived from <see cref="T:UIKit.UITextViewDelegate" /> class and assign it to the <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=UIKit%20Delegate&scope=Xamarin" title="P:UIKit.Delegate">P:UIKit.Delegate</a></format> property. Alternatively, for low-level control, by creating a class derived from <see cref="T:Foundation.NSObject" /> which has every entry point properly decorated with an [Export] attribute. The instance of this object can then be assigned to the <see cref="P:UIKit.UITextView.WeakDelegate" /> property.
</para>
</remarks>
<related type="externalDocumentation" href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextView_Class/index.html">Apple documentation for <c>UITextView</c></related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UITextView ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("init")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Default constructor that initializes a new instance of this class with no parameters.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UITextView (CoreGraphics.CGRect frame);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype CoreGraphics.CGRect frame) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.#ctor(CoreGraphics.CGRect)" />
<MemberSignature Language="F#" Value="new UIKit.UITextView : CoreGraphics.CGRect -> UIKit.UITextView" Usage="new UIKit.UITextView frame" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithFrame:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="frame" Type="CoreGraphics.CGRect" />
</Parameters>
<Docs>
<param name="frame">Frame used by the view, expressed in iOS points.</param>
<summary>Initializes the UITextView with the specified frame.</summary>
<remarks>
<para>This constructor is used to programmatically create a new instance of UITextView with the specified dimension in the frame. The object will only be displayed once it has been added to a view hierarchy by calling AddSubview in a containing view.</para>
<para>This constructor is not invoked when deserializing objects from storyboards or XIB filesinstead the constructor that takes an NSCoder parameter is invoked.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UITextView (Foundation.NSCoder coder);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Foundation.NSCoder coder) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.#ctor(Foundation.NSCoder)" />
<MemberSignature Language="F#" Value="new UIKit.UITextView : Foundation.NSCoder -> UIKit.UITextView" Usage="new UIKit.UITextView coder" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithCoder:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.DesignatedInitializer</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="coder" Type="Foundation.NSCoder" />
</Parameters>
<Docs>
<param name="coder">The unarchiver object.</param>
<summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
<remarks>
<para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
<para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the [Export("initWithCoder:"] attribute declaration.</para>
<para>The state of this object can also be serialized by using the companion method, EncodeTo.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected UITextView (Foundation.NSObjectFlag t);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Foundation.NSObjectFlag t) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.#ctor(Foundation.NSObjectFlag)" />
<MemberSignature Language="F#" Value="new UIKit.UITextView : Foundation.NSObjectFlag -> UIKit.UITextView" Usage="new UIKit.UITextView t" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="t" Type="Foundation.NSObjectFlag" />
</Parameters>
<Docs>
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
<remarks>
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
<para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
<para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
var initWithFrame = new Selector ("initWithFrame:").Handle;
if (IsDirectBinding)
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
else
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected internal UITextView (IntPtr handle);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.#ctor(System.IntPtr)" />
<MemberSignature Language="F#" Value="new UIKit.UITextView : nativeint -> UIKit.UITextView" Usage="new UIKit.UITextView handle" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="handle">Pointer (handle) to the unmanaged object.</param>
<summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
<remarks>
<para>This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UITextView (CoreGraphics.CGRect frame, UIKit.NSTextContainer textContainer);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype CoreGraphics.CGRect frame, class UIKit.NSTextContainer textContainer) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.#ctor(CoreGraphics.CGRect,UIKit.NSTextContainer)" />
<MemberSignature Language="F#" Value="new UIKit.UITextView : CoreGraphics.CGRect * UIKit.NSTextContainer -> UIKit.UITextView" Usage="new UIKit.UITextView (frame, textContainer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithFrame:textContainer:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.DesignatedInitializer</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="frame" Type="CoreGraphics.CGRect" />
<Parameter Name="textContainer" Type="UIKit.NSTextContainer" />
</Parameters>
<Docs>
<param name="frame">To be added.</param>
<param name="textContainer">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AdjustsFontForContentSizeCategory">
<MemberSignature Language="C#" Value="public virtual bool AdjustsFontForContentSizeCategory { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AdjustsFontForContentSizeCategory" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.AdjustsFontForContentSizeCategory" />
<MemberSignature Language="F#" Value="member this.AdjustsFontForContentSizeCategory : bool with get, set" Usage="UIKit.UITextView.AdjustsFontForContentSizeCategory" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:UIKit.IUIContentSizeCategoryAdjusting.AdjustsFontForContentSizeCategory</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("adjustsFontForContentSizeCategory")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setAdjustsFontForContentSizeCategory:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets whether the <see cref="T:UIKit.UITextView" /> automatically updates the font if the device's content-size category changes.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AllowsEditingTextAttributes">
<MemberSignature Language="C#" Value="public virtual bool AllowsEditingTextAttributes { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AllowsEditingTextAttributes" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.AllowsEditingTextAttributes" />
<MemberSignature Language="F#" Value="member this.AllowsEditingTextAttributes : bool with get, set" Usage="UIKit.UITextView.AllowsEditingTextAttributes" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("allowsEditingTextAttributes")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setAllowsEditingTextAttributes:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Whether the application user can change the style of the text.</summary>
<value>The default value is <see langword="false" />.</value>
<remarks>When <see langword="true" />, the application user can change the style of the currently-selected text.</remarks>
<altmember cref="P:UIKit.UITextView.AttributedText" />
<altmember cref="P:UIKit.UITextView.DataDetectorTypes" />
<altmember cref="P:UIKit.UITextView.Editable" />
<altmember cref="P:UIKit.UITextView.Font" />
<altmember cref="P:UIKit.UITextView.Text" />
<altmember cref="P:UIKit.UITextView.TextAlignment" />
<altmember cref="P:UIKit.UITextView.TextContainerInsert" />
<altmember cref="P:UIKit.UITextView.TextColor" />
<altmember cref="P:UIKit.UITextView.TypingAttributes" />
</Docs>
</Member>
<Member MemberName="AllowTextAttachmentInteraction">
<MemberSignature Language="C#" Value="public UIKit.UITextViewDelegateShouldInteractTextDelegate AllowTextAttachmentInteraction { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class UIKit.UITextViewDelegateShouldInteractTextDelegate AllowTextAttachmentInteraction" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.AllowTextAttachmentInteraction" />
<MemberSignature Language="F#" Value="member this.AllowTextAttachmentInteraction : UIKit.UITextViewDelegateShouldInteractTextDelegate with get, set" Usage="UIKit.UITextView.AllowTextAttachmentInteraction" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UITextViewDelegateShouldInteractTextDelegate</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the delegate for determining whether the text view should interact with specific text attachments.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AllowUrlInteraction">
<MemberSignature Language="C#" Value="public UIKit.UITextViewDelegateShouldInteractUrlDelegate AllowUrlInteraction { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class UIKit.UITextViewDelegateShouldInteractUrlDelegate AllowUrlInteraction" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.AllowUrlInteraction" />
<MemberSignature Language="F#" Value="member this.AllowUrlInteraction : UIKit.UITextViewDelegateShouldInteractUrlDelegate with get, set" Usage="UIKit.UITextView.AllowUrlInteraction" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UITextViewDelegateShouldInteractUrlDelegate</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the delegate for determining whether the text view should interact with specific URLs.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Appearance">
<MemberSignature Language="C#" Value="public static UIKit.UITextView.UITextViewAppearance Appearance { get; }" />
<MemberSignature Language="ILAsm" Value=".property class UIKit.UITextView/UITextViewAppearance Appearance" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.Appearance" />
<MemberSignature Language="F#" Value="member this.Appearance : UIKit.UITextView.UITextViewAppearance" Usage="UIKit.UITextView.Appearance" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UITextView+UITextViewAppearance</ReturnType>
</ReturnValue>
<Docs>
<summary>Strongly-typed property that returns the UIAppearance class for this class.</summary>
<value>
</value>
<remarks>
<para>Setting any appearance properties on this instance will affect the appearance of all instances of UITextView.</para>
<para>If developers want to control the appearance of subclasses of UITextView, they should use the <see cref="M:UIKit.UITextView.GetAppearance``1(UIKit.UITraitCollection,System.Type[])" /> method.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="AppearanceWhenContainedIn">
<MemberSignature Language="C#" Value="public static UIKit.UITextView.UITextViewAppearance AppearanceWhenContainedIn (params Type[] containers);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UITextView/UITextViewAppearance AppearanceWhenContainedIn(class System.Type[] containers) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.AppearanceWhenContainedIn(System.Type[])" />
<MemberSignature Language="F#" Value="static member AppearanceWhenContainedIn : Type[] -> UIKit.UITextView.UITextViewAppearance" Usage="UIKit.UITextView.AppearanceWhenContainedIn containers" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UITextView+UITextViewAppearance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="containers" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="containers">List of types that developers want to have as the containers to apply this particular appearance</param>
<summary>Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.</summary>
<returns>The appearance proxy object that developers can use to set properties when the given container hierarchy is active</returns>
<remarks>
<para>The returned object represents the UIAppearance proxy where developers can set appearance properties for instances of UITextView when those instances are contained in the hierarchy specified by the <paramref name="containers" /> parameter.</para>
<para>If developers want to control the appearance of subclasses of UITextView, they should use the <see cref="M:UIKit.UITextView.GetAppearance``1(UIKit.UITraitCollection,System.Type[])" /> method.</para>
<para>The following example shows how the AppearanceWhenContainedIn method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var mySliders = UISlider.AppearanceWhenContainedIn (typeof (UINavigationBar), typeof (UIPopoverController));
mySliders.TintColor = UIColor.Red;
]]></code>
</example>
<para>For more information, see the documentation for the <see cref="T:UIKit.UIAppearance" /> class.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="AttributedText">
<MemberSignature Language="C#" Value="public virtual Foundation.NSAttributedString AttributedText { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Foundation.NSAttributedString AttributedText" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.AttributedText" />
<MemberSignature Language="F#" Value="member this.AttributedText : Foundation.NSAttributedString with get, set" Usage="UIKit.UITextView.AttributedText" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("attributedText", ObjCRuntime.ArgumentSemantic.Copy)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setAttributedText:", ObjCRuntime.ArgumentSemantic.Copy)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSAttributedString</ReturnType>
</ReturnValue>
<Docs>
<summary>Contents of the text view as an attributed string.</summary>
<value>
</value>
<remarks>
<para>Application developers must use this property if they desire the use of multiple text styles in the <see cref="T:UIKit.UITextView" />. The following example uses <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search=Foundation%20NSMutable%20Attributable%20String%20Add%20Attribute&scope=Xamarin" title="M:Foundation.NSMutableAttributableString.AddAttribute*">M:Foundation.NSMutableAttributableString.AddAttribute*</a></format> to modify the color and font in a various ranges, as shown in the image.</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
//UITextView default
var atts = new UIStringAttributes();
atts.ForegroundColor = UIColor.Blue;
var txt = "Text Kit.\n Lorem ipsum different font dolor sit amet, consectetur adipiscing elit.";
var attributedString = new NSMutableAttributedString(txt,atts);
//Multiple type styles.
attributedString.BeginEditing();
attributedString.AddAttribute(UIStringAttributeKey.ForegroundColor, UIColor.Red, new NSRange(0, 10));
attributedString.AddAttribute(UIStringAttributeKey.Font, UIFont.PreferredFontForTextStyle(UIFontTextStyle.Headline), new NSRange(0, 10));
attributedString.AddAttribute(UIStringAttributeKey.Font, UIFont.FromName("Georgia", 20), new NSRange(23, 14));
attributedString.EndEditing();
TextView.AttributedText = attributedString;
]]></code>
</example>
<para>
<img href="~/UIKit/_images/UIKit.UITextView.AttributedText.png" alt="Image showing attributed text" />
</para>
</remarks>
<altmember cref="P:UIKit.UITextView.AllowsEditingTextAttributes" />
<altmember cref="P:UIKit.UITextView.DataDetectorTypes" />
<altmember cref="P:UIKit.UITextView.Editable" />
<altmember cref="P:UIKit.UITextView.Font" />
<altmember cref="P:UIKit.UITextView.Text" />
<altmember cref="P:UIKit.UITextView.TextAlignment" />
<altmember cref="P:UIKit.UITextView.TextContainerInsert" />
<altmember cref="P:UIKit.UITextView.TextColor" />
<altmember cref="P:UIKit.UITextView.TypingAttributes" />
</Docs>
</Member>
<Member MemberName="AutocapitalizationType">
<MemberSignature Language="C#" Value="public virtual UIKit.UITextAutocapitalizationType AutocapitalizationType { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype UIKit.UITextAutocapitalizationType AutocapitalizationType" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.AutocapitalizationType" />
<MemberSignature Language="F#" Value="member this.AutocapitalizationType : UIKit.UITextAutocapitalizationType with get, set" Usage="UIKit.UITextView.AutocapitalizationType" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:UIKit.IUITextInputTraits.AutocapitalizationType</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("autocapitalizationType")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setAutocapitalizationType:")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UITextAutocapitalizationType</ReturnType>
</ReturnValue>
<Docs>
<summary>How input is converted to all capitalization.</summary>
<value>The default value is <see cref="F:UIKit.UITextAutocapitalizationType.Sentences" /></value>
<remarks>
<para>The application user can ignore this value by setting Settings->General->Keyboard->Auto-Capitalization to off.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="AutocorrectionType">
<MemberSignature Language="C#" Value="public virtual UIKit.UITextAutocorrectionType AutocorrectionType { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype UIKit.UITextAutocorrectionType AutocorrectionType" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.AutocorrectionType" />
<MemberSignature Language="F#" Value="member this.AutocorrectionType : UIKit.UITextAutocorrectionType with get, set" Usage="UIKit.UITextView.AutocorrectionType" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:UIKit.IUITextInputTraits.AutocorrectionType</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("autocorrectionType")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setAutocorrectionType:")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UITextAutocorrectionType</ReturnType>
</ReturnValue>
<Docs>
<summary>A property that controls when words will be automatically corrected.</summary>
<value>The default value is <see cref="F:UIKit.UITextAutocorrectionType.Default" /></value>
<remarks>
<para>The application user can ignore this value by setting Settings->General->Keyboard->Auto-Correction to off.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="BeginFloatingCursor">
<MemberSignature Language="C#" Value="public virtual void BeginFloatingCursor (CoreGraphics.CGPoint point);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void BeginFloatingCursor(valuetype CoreGraphics.CGPoint point) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.BeginFloatingCursor(CoreGraphics.CGPoint)" />
<MemberSignature Language="F#" Value="abstract member BeginFloatingCursor : CoreGraphics.CGPoint -> unit
override this.BeginFloatingCursor : CoreGraphics.CGPoint -> unit" Usage="uITextView.BeginFloatingCursor point" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("beginFloatingCursorAtPoint:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="point" Type="CoreGraphics.CGPoint" />
</Parameters>
<Docs>
<param name="point">To be added.</param>
<summary>Begins displaying the floating cursor at the specified <paramref name="point" />.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BeginningOfDocument">
<MemberSignature Language="C#" Value="public virtual UIKit.UITextPosition BeginningOfDocument { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class UIKit.UITextPosition BeginningOfDocument" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.BeginningOfDocument" />
<MemberSignature Language="F#" Value="member this.BeginningOfDocument : UIKit.UITextPosition" Usage="UIKit.UITextView.BeginningOfDocument" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:UIKit.IUITextInput.BeginningOfDocument</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("beginningOfDocument")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UITextPosition</ReturnType>
</ReturnValue>
<Docs>
<summary>This property holds the text position for the beginning of the document. Read-only.</summary>
<value>
</value>
<remarks>To be added.</remarks>
<altmember cref="P:UIKit.UITextView.EndOfDocument" />
</Docs>
</Member>
<Member MemberName="CanPaste">
<MemberSignature Language="C#" Value="public virtual bool CanPaste (Foundation.NSItemProvider[] itemProviders);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanPaste(class Foundation.NSItemProvider[] itemProviders) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.CanPaste(Foundation.NSItemProvider[])" />
<MemberSignature Language="F#" Value="override this.CanPaste : Foundation.NSItemProvider[] -> bool" Usage="uITextView.CanPaste itemProviders" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("canPasteItemProviders:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="itemProviders" Type="Foundation.NSItemProvider[]" />
</Parameters>
<Docs>
<param name="itemProviders">To be added.</param>
<summary>Gets whether the <see cref="T:UIKit.UITextView" /> can paste data provided by the <param name="itemProviders" />.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Changed">
<MemberSignature Language="C#" Value="public event EventHandler Changed;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler Changed" />
<MemberSignature Language="DocId" Value="E:UIKit.UITextView.Changed" />
<MemberSignature Language="F#" Value="member this.Changed : EventHandler " Usage="member this.Changed : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>Event raised by the object.</summary>
<remarks>If developers do not assign a value to this event, this will reset the value for the WeakDelegate property to an internal handler that maps delegates to events.</remarks>
</Docs>
</Member>
<Member MemberName="ClassHandle">
<MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.ClassHandle" />
<MemberSignature Language="F#" Value="member this.ClassHandle : nativeint" Usage="UIKit.UITextView.ClassHandle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>The handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
<remarks>Each Xamarin.iOS class mirrors an unmanaged Objective-C class. This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.</remarks>
</Docs>
</Member>
<Member MemberName="ClearsOnInsertion">
<MemberSignature Language="C#" Value="public virtual bool ClearsOnInsertion { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool ClearsOnInsertion" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.ClearsOnInsertion" />
<MemberSignature Language="F#" Value="member this.ClearsOnInsertion : bool with get, set" Usage="UIKit.UITextView.ClearsOnInsertion" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("clearsOnInsertion")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setClearsOnInsertion:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Whether inserting new text erases the current contents.</summary>
<value>The default value is <see langword="false" />.</value>
<remarks>
<para>If this value is <see langword="true" /> and the <see cref="T:UIKit.UITextView" /> is in editing mode, inserting text will replace the existing contents and set this property to <see langword="false" />.</para>
</remarks>
<altmember cref="M:UIKit.UITextView.ScrollRangeToVisible" />
<altmember cref="P:UIKit.UITextView.Selectable" />
<altmember cref="P:UIKit.UITextView.SelectedRange" />
</Docs>
</Member>
<Member MemberName="ComparePosition">
<MemberSignature Language="C#" Value="public virtual Foundation.NSComparisonResult ComparePosition (UIKit.UITextPosition first, UIKit.UITextPosition second);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Foundation.NSComparisonResult ComparePosition(class UIKit.UITextPosition first, class UIKit.UITextPosition second) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UITextView.ComparePosition(UIKit.UITextPosition,UIKit.UITextPosition)" />
<MemberSignature Language="F#" Value="abstract member ComparePosition : UIKit.UITextPosition * UIKit.UITextPosition -> Foundation.NSComparisonResult
override this.ComparePosition : UIKit.UITextPosition * UIKit.UITextPosition -> Foundation.NSComparisonResult" Usage="uITextView.ComparePosition (first, second)" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:UIKit.IUITextInput.ComparePosition(UIKit.UITextPosition,UIKit.UITextPosition)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("comparePosition:toPosition:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSComparisonResult</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="first" Type="UIKit.UITextPosition" />
<Parameter Name="second" Type="UIKit.UITextPosition" />
</Parameters>
<Docs>
<param name="first">The first location in a document.</param>
<param name="second">The second location in a document.</param>
<summary>Returns a value that shows how one location in a document that compares to another location: before, identical, or after.</summary>
<returns>
</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CurrentInputModeDidChangeNotification">
<MemberSignature Language="C#" Value="public static Foundation.NSString CurrentInputModeDidChangeNotification { get; }" />
<MemberSignature Language="ILAsm" Value=".property class Foundation.NSString CurrentInputModeDidChangeNotification" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.CurrentInputModeDidChangeNotification" />
<MemberSignature Language="F#" Value="member this.CurrentInputModeDidChangeNotification : Foundation.NSString" Usage="UIKit.UITextView.CurrentInputModeDidChangeNotification" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Advice("Use UITextView.Notifications.ObserveCurrentInputModeDidChange helper method instead.")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>Foundation.Field("UITextInputCurrentInputModeDidChangeNotification", "UIKit")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>Notification constant for CurrentInputModeDidChange</summary>
<value>NSString constant, should be used as a token to NSNotificationCenter.</value>
<remarks>
<para id="tool-remark">This constant can be used with the <see cref="T:Foundation.NSNotificationCenter" /> to register a listener for this notification.</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (UITextView.CurrentInputModeDidChangeNotification, (notification) => Console.WriteLine ("Received the notification UITextView", notification);
// Method style
void Callback (NSNotification notification)
{
Console.WriteLine ("Received a notification UITextView", notification);
}
void Setup ()
{
NSNotificationCenter.DefaultCenter.AddObserver (UITextView.CurrentInputModeDidChangeNotification, Callback);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="DataDetectorTypes">
<MemberSignature Language="C#" Value="public virtual UIKit.UIDataDetectorType DataDetectorTypes { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype UIKit.UIDataDetectorType DataDetectorTypes" />
<MemberSignature Language="DocId" Value="P:UIKit.UITextView.DataDetectorTypes" />
<MemberSignature Language="F#" Value="member this.DataDetectorTypes : UIKit.UIDataDetectorType with get, set" Usage="UIKit.UITextView.DataDetectorTypes" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("dataDetectorTypes")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>