Share via


IUIContentContainer Interface

Definition

This interface represents the Objective-C protocol UIContentContainer.

[Foundation.Protocol(Name="UIContentContainer", WrapperType=typeof(UIKit.UIContentContainerWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="PreferredContentSizeDidChangeForChildContentContainer", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUIContentContainer) }, Selector="preferredContentSizeDidChangeForChildContentContainer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SystemLayoutFittingSizeDidChangeForChildContentContainer", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUIContentContainer) }, Selector="systemLayoutFittingSizeDidChangeForChildContentContainer:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetSizeForChildContentContainer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.IUIContentContainer), typeof(CoreGraphics.CGSize) }, ReturnType=typeof(CoreGraphics.CGSize), Selector="sizeForChildContentContainer:withParentContainerSize:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ViewWillTransitionToSize", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreGraphics.CGSize), typeof(UIKit.IUIViewControllerTransitionCoordinator) }, Selector="viewWillTransitionToSize:withTransitionCoordinator:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="WillTransitionToTraitCollection", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UITraitCollection), typeof(UIKit.IUIViewControllerTransitionCoordinator) }, Selector="willTransitionToTraitCollection:withTransitionCoordinator:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="preferredContentSize", IsProperty=true, IsRequired=true, IsStatic=false, Name="PreferredContentSize", PropertyType=typeof(CoreGraphics.CGSize), Selector="preferredContentSize")]
public interface IUIContentContainer : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIContentContainer", WrapperType=typeof(UIKit.UIContentContainerWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="PreferredContentSizeDidChangeForChildContentContainer", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUIContentContainer) }, Selector="preferredContentSizeDidChangeForChildContentContainer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="SystemLayoutFittingSizeDidChangeForChildContentContainer", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.IUIContentContainer) }, Selector="systemLayoutFittingSizeDidChangeForChildContentContainer:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetSizeForChildContentContainer", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.IUIContentContainer), typeof(CoreGraphics.CGSize) }, ReturnType=typeof(CoreGraphics.CGSize), Selector="sizeForChildContentContainer:withParentContainerSize:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="ViewWillTransitionToSize", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(CoreGraphics.CGSize), typeof(UIKit.IUIViewControllerTransitionCoordinator) }, Selector="viewWillTransitionToSize:withTransitionCoordinator:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="WillTransitionToTraitCollection", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UITraitCollection), typeof(UIKit.IUIViewControllerTransitionCoordinator) }, Selector="willTransitionToTraitCollection:withTransitionCoordinator:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="preferredContentSize", IsProperty=true, IsRequired=true, IsStatic=false, Name="PreferredContentSize", PropertyType=typeof(CoreGraphics.CGSize), Selector="preferredContentSize")>]
type IUIContentContainer = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
PreferredContentSize

Gets the preferred size for the content of the container.

Methods

Name Description
GetSizeForChildContentContainer(IUIContentContainer, CGSize)

Gets the size of the content of the specified child IUIContentContainer by using the size of the parent container.

PreferredContentSizeDidChangeForChildContentContainer(IUIContentContainer)

Notifies this controller that the preferred size for content for a specified child container has changed.

SystemLayoutFittingSizeDidChangeForChildContentContainer(IUIContentContainer)

Notifies this container that auto layout resized a specified child container.

ViewWillTransitionToSize(CGSize, IUIViewControllerTransitionCoordinator)
WillTransitionToTraitCollection(UITraitCollection, IUIViewControllerTransitionCoordinator)

Notifies this that its trait collection will change to traitCollection, as coordinated by coordinator.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to