iOS Guides | Samples

MonoTouch.UIKit.IUITextInput

IUITextInput works with the inputting of text and allows the manipulaton of features including autocorrection and many other text input features related to document presentation.

See Also: IUITextInput

Syntax

[MonoTouch.Foundation.Protocol(Name="UITextInput", WrapperType=typeof(MonoTouch.UIKit.UITextInputWrapper))]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="TextInRange", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.String), Selector="textInRange:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ReplaceText", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="replaceRange:withText:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetMarkedText", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="setMarkedText:selectedRange:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="UnmarkText", Selector="unmarkText")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetTextRange", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextRange), Selector="textRangeFromPosition:toPosition:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPosition", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextPosition), Selector="positionFromPosition:offset:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPosition", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextPosition), Selector="positionFromPosition:inDirection:offset:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ComparePosition", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.Foundation.NSComparisonResult), Selector="comparePosition:toPosition:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetOffsetFromPosition", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="offsetFromPosition:toPosition:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetPositionWithinRange", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextPosition), Selector="positionWithinRange:farthestInDirection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetCharacterRange", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextRange), Selector="characterRangeByExtendingPosition:inDirection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetBaseWritingDirection", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextWritingDirection), Selector="baseWritingDirectionForPosition:inDirection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SetBaseWritingDirectionforRange", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="setBaseWritingDirection:forRange:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetFirstRectForRange", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.CoreGraphics.CGRect), Selector="firstRectForRange:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetCaretRectForPosition", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.CoreGraphics.CGRect), Selector="caretRectForPosition:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetClosestPositionToPoint", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextPosition), Selector="closestPositionToPoint:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetClosestPositionToPoint", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextPosition), Selector="closestPositionToPoint:withinRange:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetCharacterRangeAtPoint", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextRange), Selector="characterRangeAtPoint:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetTextStyling", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.Foundation.NSDictionary), Selector="textStylingAtPosition:inDirection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPosition", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextPosition), Selector="positionWithinRange:atCharacterOffset:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetCharacterOffsetOfPosition", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="characterOffsetOfPosition:withinRange:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DictationRecognitionFailed", Selector="dictationRecognitionFailed")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DictationRecordingDidEnd", Selector="dictationRecordingDidEnd")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="InsertDictationResult", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="insertDictationResult:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetSelectionRects", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITextSelectionRect[]), Selector="selectionRectsForRange:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldChangeTextInRange", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.Boolean), Selector="shouldChangeTextInRange:replacementText:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetFrameForDictationResultPlaceholder", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.CoreGraphics.CGRect), Selector="frameForDictationResultPlaceholder:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="InsertDictationResultPlaceholder", ReturnType=typeof(MonoTouch.Foundation.NSObject), Selector="insertDictationResultPlaceholder")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="RemoveDictationResultPlaceholder", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="removeDictationResultPlaceholder:willInsertResult:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="BeginFloatingCursor", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="beginFloatingCursorAtPoint:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="UpdateFloatingCursor", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="updateFloatingCursorAtPoint:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="EndFloatingCursor", Selector="endFloatingCursor")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="selectedTextRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="SelectedTextRange", PropertyType=typeof(MonoTouch.UIKit.UITextRange), Selector="selectedTextRange", SetterSelector="setSelectedTextRange:")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.Copy, GetterSelector="markedTextStyle", IsProperty=true, IsRequired=true, IsStatic=false, Name="MarkedTextStyle", PropertyType=typeof(MonoTouch.Foundation.NSDictionary), Selector="markedTextStyle", SetterSelector="setMarkedTextStyle:")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.None, GetterSelector="beginningOfDocument", IsProperty=true, IsRequired=true, IsStatic=false, Name="BeginningOfDocument", PropertyType=typeof(MonoTouch.UIKit.UITextPosition), Selector="beginningOfDocument")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.None, GetterSelector="endOfDocument", IsProperty=true, IsRequired=true, IsStatic=false, Name="EndOfDocument", PropertyType=typeof(MonoTouch.UIKit.UITextPosition), Selector="endOfDocument")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.UnsafeUnretained, GetterSelector="inputDelegate", IsProperty=true, IsRequired=true, IsStatic=false, Name="WeakInputDelegate", PropertyType=typeof(MonoTouch.Foundation.NSObject), Selector="inputDelegate", SetterSelector="setInputDelegate:")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.None, GetterSelector="tokenizer", IsProperty=true, IsRequired=true, IsStatic=false, Name="WeakTokenizer", PropertyType=typeof(MonoTouch.Foundation.NSObject), Selector="tokenizer")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.None, GetterSelector="textInputView", IsProperty=true, IsRequired=false, IsStatic=false, Name="TextInputView", PropertyType=typeof(MonoTouch.UIKit.UIView), Selector="textInputView")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.None, GetterSelector="selectionAffinity", IsProperty=true, IsRequired=false, IsStatic=false, Name="SelectionAffinity", PropertyType=typeof(MonoTouch.UIKit.UITextStorageDirection), Selector="selectionAffinity", SetterSelector="setSelectionAffinity:")]
[MonoTouch.Foundation.ProtocolMember(ArgumentSemantic=MonoTouch.ObjCRuntime.ArgumentSemantic.None, GetterSelector="markedTextRange", IsProperty=true, IsRequired=true, IsStatic=false, Name="MarkedTextRange", PropertyType=typeof(MonoTouch.UIKit.UITextRange), Selector="markedTextRange")]
public interface IUITextInput : IUIKeyInput, IDisposable

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.IUITextInput are listed below.

Public Properties

[read-only]
BeginningOfDocumentUITextPosition. The position of text indicating the beginning of a document.
[read-only]
EndOfDocumentUITextPosition. The position of text indicating the beginning of a document.
[read-only]
MarkedTextRangeUITextRange. The currently marked range of text in a given document.
MarkedTextStyleNSDictionary. Attribute dictionary describing how text should be drawn.
SelectedTextRangeUITextRange. The range of a document's selected text.
WeakInputDelegateNSObject. Indicates a weak input delegate.
[read-only]
WeakTokenizerNSObject. Indicates a weak tokenizer.

Public Methods

ComparePosition(UITextPosition, UITextPosition) : NSComparisonResult
Gets a comparison of one position to another.
GetBaseWritingDirection(UITextPosition, UITextStorageDirection) : UITextWritingDirection
Gets the base writing direction for a text position.
GetCaretRectForPosition(UITextPosition) : RectangleF
A rectangle used for drawing a caret at a given insertion point.
GetCharacterRange(UITextPosition, UITextLayoutDirection) : UITextRange
Gets a character range within the limits of a defined direction.
GetCharacterRangeAtPoint(PointF) : UITextRange
Gets the character or a range of characters in a document that exists at a given point.
GetClosestPositionToPoint(PointF) : UITextPosition
Gets the closest position in a document that exists to a given point.
GetClosestPositionToPoint(PointF, UITextRange) : UITextPosition
Gets the closest position to a specified point in a document.
GetFirstRectForRange(UITextRange) : RectangleF
Gets the first rectangle enclosing a specified range of document text.
GetOffsetFromPosition(UITextPosition, UITextPosition) : Int32
Gets the number of visible characters between two defined text positions.
GetPosition(UITextPosition, Int32) : UITextPosition
Gets the character offset from the initial position.
GetPosition(UITextPosition, UITextLayoutDirection, Int32) : UITextPosition
Gets the character offset from an initial position.
GetPositionWithinRange(UITextRange, UITextLayoutDirection) : UITextPosition
Gets a position within a specified range.
GetSelectionRects(UITextRange) : UITextSelectionRect[]
Gets an array of selection rects that corresponds to a text range.
GetTextRange(UITextPosition, UITextPosition) : UITextRange
Gets a specified text range.
ReplaceText(UITextRange, String)
Replaces document text within a specified range.
SetBaseWritingDirectionforRange(UITextWritingDirection, UITextRange)
Sets a base directon for writing in the specified range of text.
SetMarkedText(String, NSRange)
Sets the marked text and marks it as the current selection.
TextInRange(UITextRange) : String
Gets all the text that is specified within a certain range.
UnmarkText()
Unmarks all currently marked text within a document