UITextView Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Foundation.Register("UITextView", true)]
public class UITextView : UIKit.UIScrollView, IDisposable, UIKit.IUIContentSizeCategoryAdjusting, UIKit.IUILetterformAwareAdjusting, UIKit.IUITextDraggable, UIKit.IUITextDroppable
[Foundation.Register("UITextView", true)]
public class UITextView : UIKit.UIScrollView, IDisposable, UIKit.IUIContentSizeCategoryAdjusting, UIKit.IUILetterformAwareAdjusting, UIKit.IUITextInput
[<Foundation.Register("UITextView", true)>]
type UITextView = class
inherit UIScrollView
interface IUITextInputTraits
interface INativeObject
interface IDisposable
interface INSCoding
interface IUIContentSizeCategoryAdjusting
interface IUIKeyInput
interface IUILetterformAwareAdjusting
interface IUIPasteConfigurationSupporting
interface IUITextDraggable
interface IUITextInput
interface IUITextDroppable
interface IUITextPasteConfigurationSupporting
[<Foundation.Register("UITextView", true)>]
type UITextView = class
inherit UIScrollView
interface IUITextInputTraits
interface INativeObject
interface IDisposable
interface INSCoding
interface IUIContentSizeCategoryAdjusting
interface IUIKeyInput
interface IUILetterformAwareAdjusting
interface IUITextInput
- Inheritance
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| UITextView() |
Creates a new UITextView with default values. |
| UITextView(CGRect, NSTextContainer) | |
| UITextView(CGRect) | |
| UITextView(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| UITextView(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| UITextView(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityActivationPoint | (Inherited from UIView) |
| AccessibilityAssistiveTechnologyFocusedIdentifiers | (Inherited from UIResponder) |
| AccessibilityAttributedHint | (Inherited from UIView) |
| AccessibilityAttributedLabel | (Inherited from UIView) |
| AccessibilityAttributedUserInputLabels | (Inherited from UIView) |
| AccessibilityAttributedValue | (Inherited from UIView) |
| AccessibilityCustomActions | (Inherited from UIResponder) |
| AccessibilityDirectTouchOptions | (Inherited from UIView) |
| AccessibilityDragSourceDescriptors | (Inherited from UIResponder) |
| AccessibilityDropPointDescriptors | (Inherited from UIResponder) |
| AccessibilityElementsHidden | (Inherited from UIView) |
| AccessibilityExpandedStatus | (Inherited from UIView) |
| AccessibilityFrame | (Inherited from UIView) |
| AccessibilityHeaderElements | (Inherited from UIView) |
| AccessibilityHint | (Inherited from UIView) |
| AccessibilityIdentifier |
Uniquely identifies |
| AccessibilityIgnoresInvertColors | (Inherited from UIView) |
| AccessibilityLabel | (Inherited from UIView) |
| AccessibilityLanguage | (Inherited from UIView) |
| AccessibilityNavigationStyle | (Inherited from UIView) |
| AccessibilityPath | (Inherited from UIView) |
| AccessibilityRespondsToUserInteraction | (Inherited from UIView) |
| AccessibilityTextualContext | (Inherited from UIView) |
| AccessibilityTraits | (Inherited from UIView) |
| AccessibilityUserInputLabels | (Inherited from UIView) |
| AccessibilityValue | (Inherited from UIView) |
| AccessibilityViewIsModal | (Inherited from UIView) |
| ActivityItemsConfiguration | (Inherited from UIResponder) |
| AdjustedContentInset | (Inherited from UIScrollView) |
| AdjustsFontForContentSizeCategory | |
| AlignmentRectInsets | (Inherited from UIView) |
| AllowedWritingToolsResultOptions | |
| AllowsEditingTextAttributes | |
| AllowsKeyboardScrolling | (Inherited from UIScrollView) |
| AllowsNumberPadPopover | |
| AllowTextAttachmentInteraction |
Gets or sets the delegate for determining whether the text view should interact with specific text attachments. |
| AllowUrlInteraction |
Gets or sets the delegate for determining whether the text view should interact with specific URLs. |
| Alpha | (Inherited from UIView) |
| AlwaysBounceHorizontal | (Inherited from UIScrollView) |
| AlwaysBounceVertical | (Inherited from UIScrollView) |
| AnchorPoint | (Inherited from UIView) |
| Appearance |
Strongly-typed property that returns the UIAppearance class for this class. |
| AppliedContentSizeCategoryLimitsDescription | (Inherited from UIView) |
| AttributedText | |
| AutocapitalizationType |
The UITextAutocapitalizationType used by the IUITextInput. |
| AutocorrectionType |
The UITextAutocorrectionType used by the IUITextInput. |
| AutomaticallyAdjustsScrollIndicatorInsets | (Inherited from UIScrollView) |
| AutoresizingMask | (Inherited from UIView) |
| AutosizesSubviews | (Inherited from UIView) |
| BackgroundColor |
The color used for the background. (Inherited from UIView) |
| BeginningOfDocument |
The position of text indicating the beginning of a document. |
| BorderStyle | |
| BottomAnchor | (Inherited from UIView) |
| BottomEdgeEffect | (Inherited from UIScrollView) |
| Bounces | (Inherited from UIScrollView) |
| BouncesHorizontally | (Inherited from UIScrollView) |
| BouncesVertically | (Inherited from UIScrollView) |
| BouncesZoom | (Inherited from UIScrollView) |
| Bounds | (Inherited from UIView) |
| CanBecomeFirstResponder | (Inherited from UIResponder) |
| CanBecomeFocused | (Inherited from UIView) |
| CanCancelContentTouches | (Inherited from UIScrollView) |
| CanResignFirstResponder | (Inherited from UIResponder) |
| Center | (Inherited from UIView) |
| CenterXAnchor | (Inherited from UIView) |
| CenterYAnchor | (Inherited from UIView) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| ClearsContextBeforeDrawing | (Inherited from UIView) |
| ClearsOnInsertion | |
| ClipsToBounds | (Inherited from UIView) |
| CollisionBoundingPath |
Returns the closed path that is used for collision detection. (Inherited from UIView) |
| CollisionBoundsType |
Returns a value that tells how collision bounds are specified. (Inherited from UIView) |
| Constraints | (Inherited from UIView) |
| ContentAlignmentPoint | (Inherited from UIScrollView) |
| ContentInset | (Inherited from UIScrollView) |
| ContentInsetAdjustmentBehavior | (Inherited from UIScrollView) |
| ContentLayoutGuide | (Inherited from UIScrollView) |
| ContentMode | (Inherited from UIView) |
| ContentOffset | (Inherited from UIScrollView) |
| ContentScaleFactor | (Inherited from UIView) |
| ContentSize | (Inherited from UIScrollView) |
| ContentStretch | (Inherited from UIView) |
| ConversationContext | |
| CoordinateSpace |
Gets the coordinate space implemenation. (Inherited from UIScrollView) |
| CornerConfiguration | (Inherited from UIView) |
| CurrentInputModeDidChangeNotification |
Notification constant for CurrentInputModeDidChange |
| DataDetectorTypes | |
| DebugDescription | (Inherited from NSObject) |
| Decelerating |
If this property returns |
| DecelerationRate | (Inherited from UIScrollView) |
| DelaysContentTouches | (Inherited from UIScrollView) |
| Delegate |
An instance of the UIKit.IUITextViewDelegate model class which acts as the class delegate. |
| Description | (Inherited from NSObject) |
| DirectionalLayoutMargins | (Inherited from UIView) |
| DirectionalLockEnabled |
If |
| DirectionalPressGestureRecognizer | (Inherited from UIScrollView) |
| Dragging |
Returns |
| Editable |
This property determines if the text view is editable or not. |
| EditingInteractionConfiguration | (Inherited from UIResponder) |
| EffectiveUserInterfaceLayoutDirection | (Inherited from UIView) |
| EnablesReturnKeyAutomatically |
Whether the return key is automatically enabled. |
| EndOfDocument |
The position of text indicating the beginning of a document. |
| ExclusiveTouch |
Restricts the event delivery to this view. (Inherited from UIView) |
| FindInteraction | |
| FindInteractionEnabled | |
| FirstBaselineAnchor | (Inherited from UIView) |
| Focused |
Whether the UIView is the focused view. (Inherited from UIView) |
| FocusEffect | (Inherited from UIView) |
| FocusGroupIdentifier | (Inherited from UIView) |
| FocusGroupPriority | (Inherited from UIView) |
| FocusItemContainer |
Gets the container that manages focus information for child focus items. (Inherited from UIView) |
| FocusItemDeferralMode | (Inherited from UIView) |
| Font | |
| Frame | (Inherited from UIView) |
| FrameLayoutGuide | (Inherited from UIScrollView) |
| GestureRecognizers | (Inherited from UIView) |
| GetWritingToolsIgnoredRangesInEnclosingRange | |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| HasAmbiguousLayout | (Inherited from UIView) |
| HasText |
Gets a value that tells whether the key input has text in it. |
| HeightAnchor | (Inherited from UIView) |
| Hidden |
Specifies whether the UIView displays or not. (Inherited from UIView) |
| HorizontalScrollIndicatorInsets | (Inherited from UIScrollView) |
| HoverStyle | (Inherited from UIView) |
| IndexDisplayMode | (Inherited from UIScrollView) |
| IndicatorStyle | (Inherited from UIScrollView) |
| InlinePredictionType | |
| InputAccessoryView | |
| InputAccessoryViewController | (Inherited from UIResponder) |
| InputAssistantItem | (Inherited from UIResponder) |
| InputDelegate |
The input delegate object for this UITextField. |
| InputView | |
| InputViewController | (Inherited from UIResponder) |
| InsetsLayoutMarginsFromSafeArea | (Inherited from UIView) |
| Interactions | (Inherited from UIView) |
| InteractionState | |
| IntrinsicContentSize | (Inherited from UIView) |
| IsAccessibilityElement | (Inherited from UIView) |
| IsDirectBinding | (Inherited from NSObject) |
| IsFirstResponder | (Inherited from UIResponder) |
| IsProxy | (Inherited from NSObject) |
| IsTransparentFocusItem | (Inherited from UIView) |
| KeyboardAppearance |
The UIKeyboardAppearance used by the IUITextInput |
| KeyboardDismissMode | (Inherited from UIScrollView) |
| KeyboardLayoutGuide | (Inherited from UIView) |
| KeyboardType |
The UIKeyboardType used by the IUITextInput. |
| KeyCommands | (Inherited from UIResponder) |
| LargeContentImage | (Inherited from UIView) |
| LargeContentImageInsets | (Inherited from UIView) |
| LargeContentTitle | (Inherited from UIView) |
| LastBaselineAnchor | (Inherited from UIView) |
| Layer | (Inherited from UIView) |
| LayoutGuides | (Inherited from UIView) |
| LayoutManager | |
| LayoutMargins | (Inherited from UIView) |
| LayoutMarginsGuide | (Inherited from UIView) |
| LeadingAnchor | (Inherited from UIView) |
| LeftAnchor | (Inherited from UIView) |
| LeftEdgeEffect | (Inherited from UIScrollView) |
| MarkedTextRange |
The currently marked range of text in a given document. |
| MarkedTextStyle |
Attribute dictionary describing how text should be drawn. |
| MaskView | (Inherited from UIView) |
| MathExpressionCompletionType | |
| MaximumContentSizeCategory | (Inherited from UIView) |
| MaximumZoomScale | (Inherited from UIScrollView) |
| MinimumContentSizeCategory | (Inherited from UIView) |
| MinimumZoomScale | (Inherited from UIScrollView) |
| MotionEffects | (Inherited from UIView) |
| MultipleTouchEnabled |
Controls whether the UIView can handle multitouch events. (Inherited from UIView) |
| NextResponder | (Inherited from UIResponder) |
| Opaque |
Determines whether the view is opaque or not. (Inherited from UIView) |
| OverrideUserInterfaceStyle | (Inherited from UIView) |
| PagingEnabled |
If |
| PanGestureRecognizer | (Inherited from UIScrollView) |
| ParentFocusEnvironment |
Gets the parent focus environment. (Inherited from UIView) |
| PasswordRules |
The password entry rules. |
| PasteConfiguration |
The UIPasteConfiguration supported by |
| PasteDelegate |
Gets the delegate for handling text pasting and text drops. |
| PinchGestureRecognizer | (Inherited from UIScrollView) |
| PreferredFocusedView |
If not |
| PreferredFocusEnvironments |
Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus. (Inherited from UIView) |
| PreservesSuperviewLayoutMargins | (Inherited from UIView) |
| ReadableContentGuide | (Inherited from UIView) |
| RefreshControl | (Inherited from UIScrollView) |
| RestorationIdentifier | (Inherited from UIView) |
| RetainCount | (Inherited from NSObject) |
| ReturnKeyType |
The form of the return key for the IUITextInput. |
| RightAnchor | (Inherited from UIView) |
| RightEdgeEffect | (Inherited from UIScrollView) |
| SafeAreaInsets | (Inherited from UIView) |
| SafeAreaLayoutGuide | (Inherited from UIView) |
| ScalesLargeContentImage | (Inherited from UIView) |
| ScrollAnimating | (Inherited from UIScrollView) |
| ScrollEnabled |
If set to |
| ScrollIndicatorInsets | (Inherited from UIScrollView) |
| ScrollsToTop | (Inherited from UIScrollView) |
| SecureTextEntry |
Whether the entered text should be hidden. |
| Selectable |
Whether the application user can select content and interact with links and text attachments. |
| SelectedRange | |
| SelectedRanges | |
| SelectedTextRange |
The range of a document's selected text. |
| SelectionAffinity |
A value that controls whether the cursor is displayed at the start of the last line or end of the second-to-last line of a multiline selection. |
| Self | (Inherited from NSObject) |
| SemanticContentAttribute | (Inherited from UIView) |
| ShouldBeginEditing |
Delegate invoked by the object to get a value. |
| ShouldChangeText |
Delegate invoked by the object to get a value. |
| ShouldEndEditing |
Delegate invoked by the object to get a value. |
| ShouldGroupAccessibilityChildren | (Inherited from UIView) |
| ShouldInteractWithTextAttachment |
Delegate invoked by the object to get a value. |
| ShouldInteractWithUrl |
Delegate invoked by the object to get a value. |
| ShouldScrollToTop |
Delegate invoked by the object to get a value. (Inherited from UIScrollView) |
| ShowsHorizontalScrollIndicator | (Inherited from UIScrollView) |
| ShowsLargeContentViewer | (Inherited from UIView) |
| ShowsVerticalScrollIndicator | (Inherited from UIScrollView) |
| SizingRule | |
| SmartDashesType |
The smart dashes style. |
| SmartInsertDeleteType |
The smart insert style. |
| SmartQuotesType |
The smart quotes style. |
| SpellCheckingType |
Gets or sets a value that tells whether spell-checking is on, off, or if spell-checking will be enabled only when auto-complete is enabled (default). |
| SubclassForWritingToolsCoordinator | |
| Subviews | (Inherited from UIView) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Superview | (Inherited from UIView) |
| SupportsAdaptiveImageGlyph | |
| Tag | (Inherited from UIView) |
| Text | |
| TextAlignment | |
| TextBackgroundColorKey |
Developers should not use this deprecated property. Developers should use 'NSAttributedString.BackgroundColorAttributeName'. |
| TextColor | |
| TextColorKey |
The property holds the key that should be used to retrieve the value of the text color from a NSDictionary. |
| TextContainer | |
| TextContainerInset | |
| TextContentType |
The semantic of the expected input, which allows the system to, for example, provide custom keyboards. |
| TextDidBeginEditingNotification |
Notification constant for TextDidBeginEditing |
| TextDidChangeNotification |
Notification constant for TextDidChange |
| TextDidEndEditingNotification |
Notification constant for TextDidEndEditing |
| TextDragActive |
Gets a Boolean value that tells whether a drag session is active for the text view. |
| TextDragDelegate |
Gets or sets a delegate for managing drag source behavior. |
| TextDragInteraction |
Gets the drag interaction on the text view. |
| TextDragOptions |
Gets a value that controls how formatting is displayed in dragged text. |
| TextDropActive |
Gets a Boolean value that tells whether there is an active text drop session on the view. |
| TextDropDelegate |
Gets or sets a delegate for managing text drop behavior. |
| TextDropInteraction |
Gets the drop interaction on the text view. |
| TextFontKey |
The property holds the key that should be used to retrieve the value of the font for the text from a NSDictionary. |
| TextFormattingConfiguration | |
| TextHighlightAttributes | |
| TextInputContextIdentifier | (Inherited from UIResponder) |
| TextInputMode | (Inherited from UIResponder) |
| TextInputView |
Returns the input view that provides the coordinate system for geometric operations within the text input. |
| TextLayoutManager | |
| TextStorage | |
| TintAdjustmentMode | (Inherited from UIView) |
| TintColor |
The color used for tinting. (Inherited from UIView) |
| Tokenizer |
This property provides information on the tokenizer that would be used to break up the text into units such as characters, words, lines, and paragraphs. |
| TopAnchor | (Inherited from UIView) |
| TopEdgeEffect | (Inherited from UIScrollView) |
| TouchBar | (Inherited from UIResponder) |
| Tracking |
Returns |
| TrailingAnchor | (Inherited from UIView) |
| TraitCollection |
Gets the trait collection that describes the environment. (Inherited from UIView) |
| TraitOverrides | (Inherited from UIView) |
| TransfersHorizontalScrollingToParent | (Inherited from UIScrollView) |
| TransfersVerticalScrollingToParent | (Inherited from UIScrollView) |
| Transform | (Inherited from UIView) |
| Transform3D | (Inherited from UIView) |
| TranslatesAutoresizingMaskIntoConstraints | (Inherited from UIView) |
| TypingAttributes | |
| TypingAttributes2 | |
| UndoManager | (Inherited from UIResponder) |
| UserActivity | (Inherited from UIResponder) |
| UserInteractionEnabled |
Determines whether input events are processed by this view. (Inherited from UIView) |
| UsesStandardTextScaling | |
| VerticalScrollIndicatorInsets | (Inherited from UIScrollView) |
| ViewForBaselineLayout | (Inherited from UIView) |
| ViewForFirstBaselineLayout | (Inherited from UIView) |
| ViewForLastBaselineLayout | (Inherited from UIView) |
| ViewForZoomingInScrollView |
Delegate invoked by the object to get a value. (Inherited from UIScrollView) |
| ViewPrintFormatter | (Inherited from UIView) |
| VisibleSize |
Gets the visible size of the scrollview container. (Inherited from UIScrollView) |
| WeakDelegate | |
| WeakInputDelegate |
Indicates a weak input delegate. |
| WeakLinkTextAttributes | |
| WeakTokenizer |
Indicates a weak tokenizer. |
| WidthAnchor | (Inherited from UIView) |
| Window | (Inherited from UIView) |
| WritingToolsActive | |
| WritingToolsBehavior | |
| WritingToolsCoordinator | |
| Zone | (Inherited from NSObject) |
| ZoomAnimating | (Inherited from UIScrollView) |
| ZoomBouncing |
Returns |
| Zooming |
Returns |
| ZoomScale | (Inherited from UIScrollView) |
Methods
Events
| Name | Description |
|---|---|
| Changed |
Event raised by the object. |
| DecelerationEnded |
Event raised by the object. (Inherited from UIScrollView) |
| DecelerationStarted |
Event raised by the object. (Inherited from UIScrollView) |
| DidBeginFormatting | |
| DidChangeAdjustedContentInset |
Event raised by the object. (Inherited from UIScrollView) |
| DidEndFormatting | |
| DidZoom |
Event raised by the object. (Inherited from UIScrollView) |
| DraggingEnded |
Event raised by the object. (Inherited from UIScrollView) |
| DraggingStarted |
Event raised by the object. (Inherited from UIScrollView) |
| Ended |
Raised when editing has finished in this UITextView. |
| ScrollAnimationEnded |
Event raised by the object. (Inherited from UIScrollView) |
| Scrolled |
Event raised by the object. (Inherited from UIScrollView) |
| ScrolledToTop |
Event raised by the object. (Inherited from UIScrollView) |
| SelectionChanged |
Event raised by the object. |
| Started |
Raised when editing has started on this UITextView. |
| WillBeginFormatting | |
| WillEndDragging |
Event raised by the object. (Inherited from UIScrollView) |
| WillEndFormatting | |
| WritingToolsDidEnd | |
| WritingToolsWillBegin | |
| ZoomingEnded |
Event raised by the object. (Inherited from UIScrollView) |
| ZoomingStarted |
Event raised by the object. (Inherited from UIScrollView) |