The methods of UIKit.UIView are listed below. For a list of all members, see the UIView Members list.
See Also: Inherited members from UIKit.UIResponder
AccessibilityActivate()Activates accessibility for this UIView, returning true on success. | ||
Add(UIView)This is an alias for UIView.AddSubview, but uses the Add pattern as it allows C# 3.0 constructs to add subviews after creating the object. | ||
AddConstraint(NSLayoutConstraint)Adds a constraint to the layout of the receiving view or its subviews. | ||
AddConstraints(NSLayoutConstraint[])Adds multiple constraints to the layout of the receiving view or its subviews. | ||
AddGestureRecognizer(UIGestureRecognizer)Adds a gesture recognizer to this view. | ||
static | AddKeyframeWithRelativeStartTime(double, double, Action)Adds a single keyframe to an animation. | |
AddMotionEffect(UIMotionEffect)Adds the specified motion effect to the view. | ||
AddSubview(UIView)Adds the specified view as a subview of this view. | ||
AddSubviews(params UIView[])Convenience routine to add various views to a UIView. | ||
AlignmentRectForFrame(CoreGraphics.CGRect)Returns a customized alignment rectangle for Auto Layout. | ||
static | Animate(double, Action)Animates the property changes that take place in the specified action. | |
static | Animate(double, Action, Action)Animates the property changes that take place in the specified action and invokes a completion callback when the animation completes. | |
static | Animate(double, double, UIViewAnimationOptions, Action, Action)Invokes animation changes to one or more views by specifying duration, delay, options, and a completion handler. | |
static | AnimateAsync(double, Action)Animates the property changes that take place in the specified animation as an asynchronous operation. | |
static | AnimateKeyframes(double, double, UIViewKeyframeAnimationOptions, Action, UICompletionHandler)Creates an animation action object that is to be used to set up keyframe-based animations for the current view. | |
static | AnimateKeyframesAsync(double, double, UIViewKeyframeAnimationOptions, Action)Animates the specified action, in which keyframe animations may be used. | |
static | AnimateNotify(double, Action, UICompletionHandler)Animates the property changes that take place in the specified action. | |
static | AnimateNotify(double, double, UIViewAnimationOptions, Action, UICompletionHandler)Animates the property changes that take place in the specified action and invokes a completion callback when the animation completes. | |
static | AnimateNotify(double, double, nfloat, nfloat, UIViewAnimationOptions, Action, UICompletionHandler)Executes a view animation that uses a timing curve that corresponds to the activity of a physical spring. | |
static | AnimateNotifyAsync(double, Action)Animates the property changes that take place in the specified block and invokes a completion callback when the animation completes. | |
static | AnimateNotifyAsync(double, double, UIViewAnimationOptions, Action)Executes the specified animation as an asynchronous operation. | |
static | AnimateNotifyAsync(double, double, nfloat, nfloat, UIViewAnimationOptions, Action)Executes a view animation that uses a timing curve that corresponds to the activity of a physical spring. | |
static | AppearanceWhenContainedIn(params Type[])Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy. | |
static | BeginAnimations(string)Indicates the beginning of an animation block. | |
static | BeginAnimations(string, IntPtr)Indicates the beginning of an animation block | |
BringSubviewToFront(UIView)Moves the specified subview so that it appears in front of other UIView.Subviews. | ||
static | CommitAnimations()Indicates the end of an animation block. | |
ContentCompressionResistancePriority(UILayoutConstraintAxis)Returns the resistance of an axis to compression below its intrinsic size. | ||
ContentHuggingPriority(UILayoutConstraintAxis)Returns the resistance of an axis to expansion larger than its intrinsic size. | ||
ConvertPointFromCoordinateSpace(IUICoordinateSpace, CoreGraphics.CGPoint)Converts a point from coordinate space. | ||
ConvertPointFromView(UIView, CoreGraphics.CGPoint)Returns the point, in the receiver's coordinate system, of the point in the fromView's coordinate space. | ||
ConvertPointToCoordinateSpace(IUICoordinateSpace, CoreGraphics.CGPoint)Converts point to coordinate space. | ||
ConvertPointToView(UIView, CoreGraphics.CGPoint)Returns the point, in the toView's coordinate system, of the point in this UIKit.UIView's local coordinate system. | ||
ConvertRectFromCoordinateSpace(IUICoordinateSpace, CoreGraphics.CGRect)Converts a rectangle from coordinate space. | ||
ConvertRectFromView(UIView, CoreGraphics.CGRect)Returns the System.Drawing.RectangleF, in the receiver's coordinate system, of the rect in the fromView's coordinate space. | ||
ConvertRectToCoordinateSpace(IUICoordinateSpace, CoreGraphics.CGRect)Converts a rectangle to coordinate space. | ||
ConvertRectToView(UIView, CoreGraphics.CGRect)Returns the System.Drawing.RectangleF, in the toView's coordinate system, of the rect in this UIKit.UIView's local coordinate system. | ||
DecodeRestorableState(Foundation.NSCoder)Application developers can override this method to support state restoration. | ||
Draw(CoreGraphics.CGRect)Draws the view within the passed-in rectangle. | ||
DrawRect(UIViewPrintFormatter, CoreGraphics.CGRect)Draws a region for printing. | ||
DrawViewHierarchy(bool, CoreGraphics.CGRect)Renders the view hierarchy (slower than UIView.SnapshotView). | ||
EncodeRestorableState(Foundation.NSCoder)Application developers can override this method to store state associated with the view. | ||
EncodeTo(Foundation.NSCoder)Encodes the state of the object on the provided encoder | ||
ExchangeSubview(nint, nint)This method exchanges the indices of two UIKit.UIViews within the UIView.Subviews array. | ||
ExerciseAmbiguityInLayout()Randomly changes the UIView.Frame within an ambiguous set of Auto Layout constraints. | ||
FrameForAlignmentRect(CoreGraphics.CGRect)Returns the frame resulting from applying the alignmentRect to the current Auto Layout constraints. | ||
GestureRecognizerShouldBegin(UIGestureRecognizer)Determines if the specified gesture recognizers should be allowed to track touch events. | ||
static | GetAppearance<T>()The strongly-typed IUIAppearance for this object. | |
static | GetAppearance<T>(UITraitCollection)IUIAppearance for this object with specified traits. | |
static | GetAppearance<T>(UITraitCollection, params Type[])IUIAppearance for this object with specified traits and customized container. | |
GetConstraintsAffectingLayout(UILayoutConstraintAxis)Returns the array of UIKit.NSLayoutConstraint that are affecting the layout of the UIKit.UIView along the specified axis. | ||
GetEnumerator()Returns an enumerator that lists all of the subviews in this view | ||
HitTest(UIEvent, CoreGraphics.CGPoint)Determines the most nested view that contains the point. | ||
InsertSubview(UIView, nint)Inserts the specified subview at the specified location as a subview of this view. | ||
InsertSubviewAbove(UIView, UIView)Inserts the specified view above the siblingSubvie in the view hierarchy | ||
InsertSubviewBelow(UIView, UIView)Inserts the specified view below the siblingSubview in the view hierarchy. | ||
InvalidateIntrinsicContentSize()Alerts the Auto Layout system that the intrinsic value of the UIKit.UIView has changed. | ||
IsDescendantOfView(UIView)Returns true if this UIKit.UIView is in the view's view hierarchy. | ||
LayoutIfNeeded()Lays out the subviews if needed. | ||
LayoutMarginsDidChange()Lays out changed subviews | ||
LayoutSubviews()Lays out subviews. | ||
MovedToSuperview()Indicates the UIKit.UIView has had its UIView.Superview property changed. | ||
MovedToWindow()Indicates the UIKit.UIView has had its UIView.Window property changed. | ||
NeedsUpdateConstraints()Indicates that the Auto Layout constraints of the UIKit.UIView need updating. | ||
static | PerformSystemAnimation(UISystemAnimation, UIView[], UIViewAnimationOptions, Action, UICompletionHandler)Performs specified system-provided animation sequence on one or more views, together with user-defined parallel animations. | |
static | PerformSystemAnimationAsync(UISystemAnimation, UIView[], UIViewAnimationOptions, Action)Performs a system-provided animation and optional parallel animations. | |
static | PerformWithoutAnimation(Action)Applies a set of changes to a view with a guarantee that animations will not be used. | |
PointInside(UIEvent, CoreGraphics.CGPoint)Returns true if the specified point is within the UIKit.UIView's UIView.Bounds. | ||
RemoveConstraint(NSLayoutConstraint)Removes an Auto Layout constraint from the UIKit.UIView's UIView.Constraints. | ||
RemoveConstraints(NSLayoutConstraint[])Removes multiple Auto Layout constraints from the UIKit.UIView's UIView.Constraints. | ||
RemoveFromSuperview()Detaches the UIKit.UIView from its UIView.Superview. | ||
RemoveGestureRecognizer(UIGestureRecognizer)Removes a gesture recognizer from the UIKit.UIView's UIView.GestureRecognizers. | ||
RemoveMotionEffect(UIMotionEffect)Removes the specified motion effect to the view. | ||
static | RequiresConstraintBasedLayout()Indicates that the UIKit.UIView uses Auto Layout. | |
ResizableSnapshotView(bool, UIEdgeInsets, CoreGraphics.CGRect)Creates an image snapshot of a portion of the UIKit.UIView, with stretchable insets. | ||
SendSubviewToBack(UIView)Moves a UIKit.UIView so that it appears behind all its siblings. | ||
static | SetAnimationBeginsFromCurrentState(bool)Sets whether the animation transaction will animate from the current view state. | |
static | SetAnimationCurve(UIViewAnimationCurve)Sets the animation curve for this animation transaction. | |
static | SetAnimationDelay(double)Sets the animation delay for this animation transaction. | |
static | SetAnimationDelegate(Foundation.NSObject)Allows the app developer to create a custom animation delegate. | |
static | SetAnimationDidStopSelector(ObjCRuntime.Selector)Specifies the selector to be used by a custom animation delegate when animation ends. | |
static | SetAnimationDuration(double)Sets the duration for this animation transaction. | |
static | SetAnimationRepeatAutoreverses(bool)Sets whether this animation transaction will automatically reverse when it completes. | |
static | SetAnimationRepeatCount(float)Sets the repeat count for this animation transaction. | |
static | SetAnimationStartDate(Foundation.NSDate)Specifies when the animation should begin. | |
static | SetAnimationTransition(UIViewAnimationTransition, UIView, bool)Sets a transition to be used during an animation block. | |
static | SetAnimationWillStartSelector(ObjCRuntime.Selector)Specifies the selector to be used by a custom animation delegate when animation is about to begin. | |
SetContentCompressionResistancePriority(float, UILayoutConstraintAxis)Sets the resistance to compression below the UIKit.UIView's UIView.IntrinsicContentSize. | ||
SetContentHuggingPriority(float, UILayoutConstraintAxis)Sets the resistance to expansion beyond the UIKit.UIView's UIView.IntrinsicContentSize. | ||
SetNeedsDisplay()Marks the view dirty and queues a redraw operation on it. | ||
SetNeedsDisplayInRect(CoreGraphics.CGRect)Marks a region of the view as dirty and queues a redraw operation on that region. | ||
SetNeedsLayout()Sets whether subviews need to be rearranged before displaying. | ||
SetNeedsUpdateConstraints()Indicates to the Auto Layout system that it must call UIView.UpdateConstraints. | ||
SizeThatFits(CoreGraphics.CGSize)Returns the System.Drawing.SizeF that best fits this UIKit.UIView. | ||
SizeToFit()Moves and resizes the UIKit.UIView so that it tightly encloses its UIView.Subviews | ||
SnapshotView(bool)Creates a UIKit.UIView that contains a snapshot image of the current view's contents. | ||
SubviewAdded(UIView)Tells the view when subviews are added. | ||
SystemLayoutSizeFittingSize(CoreGraphics.CGSize)Calculates the smallest or largest size that this UIKit.UIView can have that satisfies its Auto Layout constraints. | ||
SystemLayoutSizeFittingSize(float, float, CoreGraphics.CGSize)Defines the fitting constraints for layout. | ||
TintColorDidChange()Called when the UIView.TintColor changes, such as when a UIKit.UIActionSheet is displayed. | ||
TraitCollectionDidChange(UITraitCollection)Defines previous trait collection. | ||
static | Transition(UIView, double, UIViewAnimationOptions, Action, Action)Specifies a transition animation on the specified collection view. | |
static | Transition(UIView, UIView, double, UIViewAnimationOptions, Action)Specifies a transition animation on the specified collection view. | |
static | TransitionNotify(UIView, double, UIViewAnimationOptions, Action, UICompletionHandler)Creates a transition animation action that is used for the current container view. | |
static | TransitionNotify(UIView, UIView, double, UIViewAnimationOptions, UICompletionHandler)Specifies a transition animation to be used between the specified UIKit.UIViews. | |
static | TransitionNotifyAsync(UIView, double, UIViewAnimationOptions, Action)Specifies a transition animation on the specified collection view. | |
static | TransitionNotifyAsync(UIView, UIView, double, UIViewAnimationOptions)Specifies a transition animation to be used between the specified s. | |
UpdateConstraints()Updates the Auto Layout constraints for the UIKit.UIView. | ||
UpdateConstraintsIfNeeded()Updates the constraints of the UIKit.UIView and its UIView.Subviews. | ||
ViewWithTag(nint)Returns the UIKit.UIView identified by the tag. May return null. | ||
WillMoveToSuperview(UIView)Called before the UIView.Superview changes. | ||
WillMoveToWindow(UIWindow)
| ||
WillRemoveSubview(UIView)Called prior to the removal of a subview. |