Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
689 lines (688 sloc) 46 KB
<Type Name="UICollectionReusableView" FullName="UIKit.UICollectionReusableView">
<TypeSignature Language="C#" Value="public class UICollectionReusableView : UIKit.UIView" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit UICollectionReusableView extends UIKit.UIView" />
<TypeSignature Language="DocId" Value="T:UIKit.UICollectionReusableView" />
<TypeSignature Language="F#" Value="type UICollectionReusableView = class&#xA; inherit UIView" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>UIKit.UIView</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>Foundation.Register("UICollectionReusableView", true)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>The base class for <see cref="T:UIKit.UIView" />s that are reused in a <see cref="T:UIKit.UICollectionView" />.</summary>
<remarks>
<para>The <see cref="T:UIKit.UICollectionView" /> class is designed to work with large datasets while respecting the resource limitations of iOS devices. To do this, the <see cref="T:UIKit.UICollectionView" /> maintains a reuse queue of component views of type <see cref="T:UIKit.UICollectionReusableView" />, instantiating only as many as are strictly necessary and replacing values in <see cref="T:UIKit.UICollectionReusableView" />s that are no longer visible with values appropriate to <see cref="T:UIKit.UICollectionReusableView" />s that are about to scroll onto the screen. (See <see cref="T:UIKit.UICollectionView" /> for an extended discussion of the reuse queue.)</para>
<para>The cells in a <see cref="T:UIKit.UICollectionView" /> are expected to be of type <see cref="T:UIKit.UICollectionViewCell" />, which is a subtype of <see cref="T:UIKit.UICollectionReusableView" />. Supplementary views, though, are likely to be direct subtypes of <see cref="T:UIKit.UICollectionReusableView" />.</para>
<para>Supplementary Views are views that present information associated with each section of a <see cref="T:UIKit.UICollectionView" />. Like <see cref="T:UIKit.UICollectionViewCell" />s, Supplementary Views are data-driven. Where <see cref="T:UIKit.UICollectionViewCell" />s present the item data from a data source, Supplementary Views present the section data, such as the categories of book in a bookshelf or the genre of music in a music library.</para>
<para>
For example, a Supplementary View could be used to present a header for a particular section, as shown in this figure taken from the "Introduction to Collection Views" guide:
</para>
<para>
<img href="~/UIKit/_images/UIKit.UICollectionReusableView.png" alt="Screenshot of the app" />
</para>
<para>
However, Supplementary Views are more generic than just headers and footers. They can be positioned anywhere in the collection view and can be comprised of any views, making their appearance fully customizable.
</para>
<para>Supplementary Views are associated with specific sections within the <see cref="T:UIKit.UICollectionView" />. Since the <see cref="T:UIKit.UICollectionView" /> manages the reuse queue and will reuse an off-screen supplementary view, the application developer can use the <see cref="M:UIKit.UICollectionViewDataSource.GetViewForSupplementaryElement(UIKit.UICollectionView,Foundation.NSString,Foundation.NSIndexPath)" /> method to coordinate the visual attributes of a supplementary view with domain data from a model element. In the following code, a <see cref="T:UIKit.UILabel" />'s <see cref="P:UIKit.UILabel.Text" /> property is set to the value of the <see cref="P:Foundation.NSIndexPath.Section" /> property.</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
public override UICollectionReusableView GetViewForSupplementaryElement (UICollectionView collectionView, NSString elementKind, NSIndexPath indexPath)
{
  var headerView = (Header) collectionView.DequeueReusableSupplementaryView (elementKind, headerId, indexPath);
  headerView.Text = "Supplementary View Section " + indexPath.Section.ToString ();
  return headerView;
}
]]></code>
</example>
</remarks>
<altmember cref="T:UIKit.UICollectionView" />
<altmember cref="T:UIKit.UICollectionViewCell" />
<altmember cref="T:UIKit.UICollectionViewDataSource" />
<related type="article" href="https://docs.xamarin.com/ios/Guides/User_Interface/Introduction_to_CollectionViews">Introduction to Collection Views</related>
<related type="externalDocumentation" href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionReusableView_class/index.html">Apple documentation for <c>UICollectionReusableView</c></related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UICollectionReusableView ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.#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, initializes a new instance of this class.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UICollectionReusableView (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.UICollectionReusableView.#ctor(CoreGraphics.CGRect)" />
<MemberSignature Language="F#" Value="new UIKit.UICollectionReusableView : CoreGraphics.CGRect -&gt; UIKit.UICollectionReusableView" Usage="new UIKit.UICollectionReusableView 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 UICollectionReusableView with the specified frame.</summary>
<remarks>
<para>This constructor is used to programmatically create a new instance of UICollectionReusableView 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 UICollectionReusableView (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.UICollectionReusableView.#ctor(Foundation.NSCoder)" />
<MemberSignature Language="F#" Value="new UIKit.UICollectionReusableView : Foundation.NSCoder -&gt; UIKit.UICollectionReusableView" Usage="new UIKit.UICollectionReusableView 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 UICollectionReusableView (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.UICollectionReusableView.#ctor(Foundation.NSObjectFlag)" />
<MemberSignature Language="F#" Value="new UIKit.UICollectionReusableView : Foundation.NSObjectFlag -&gt; UIKit.UICollectionReusableView" Usage="new UIKit.UICollectionReusableView 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 UICollectionReusableView (IntPtr handle);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.#ctor(System.IntPtr)" />
<MemberSignature Language="F#" Value="new UIKit.UICollectionReusableView : nativeint -&gt; UIKit.UICollectionReusableView" Usage="new UIKit.UICollectionReusableView 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="Appearance">
<MemberSignature Language="C#" Value="public static UIKit.UICollectionReusableView.UICollectionReusableViewAppearance Appearance { get; }" />
<MemberSignature Language="ILAsm" Value=".property class UIKit.UICollectionReusableView/UICollectionReusableViewAppearance Appearance" />
<MemberSignature Language="DocId" Value="P:UIKit.UICollectionReusableView.Appearance" />
<MemberSignature Language="F#" Value="member this.Appearance : UIKit.UICollectionReusableView.UICollectionReusableViewAppearance" Usage="UIKit.UICollectionReusableView.Appearance" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UICollectionReusableView+UICollectionReusableViewAppearance</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 UICollectionReusableView.</para>
<para>If developers want to control the appearance of subclasses of UICollectionReusableView, they should use the <see cref="M:UIKit.UICollectionReusableView.GetAppearance``1(UIKit.UITraitCollection,System.Type[])" /> method.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="AppearanceWhenContainedIn">
<MemberSignature Language="C#" Value="public static UIKit.UICollectionReusableView.UICollectionReusableViewAppearance AppearanceWhenContainedIn (params Type[] containers);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UICollectionReusableView/UICollectionReusableViewAppearance AppearanceWhenContainedIn(class System.Type[] containers) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.AppearanceWhenContainedIn(System.Type[])" />
<MemberSignature Language="F#" Value="static member AppearanceWhenContainedIn : Type[] -&gt; UIKit.UICollectionReusableView.UICollectionReusableViewAppearance" Usage="UIKit.UICollectionReusableView.AppearanceWhenContainedIn containers" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UICollectionReusableView+UICollectionReusableViewAppearance</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 UICollectionReusableView 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 UICollectionReusableView, they should use the <see cref="M:UIKit.UICollectionReusableView.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="ApplyLayoutAttributes">
<MemberSignature Language="C#" Value="public virtual void ApplyLayoutAttributes (UIKit.UICollectionViewLayoutAttributes layoutAttributes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void ApplyLayoutAttributes(class UIKit.UICollectionViewLayoutAttributes layoutAttributes) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.ApplyLayoutAttributes(UIKit.UICollectionViewLayoutAttributes)" />
<MemberSignature Language="F#" Value="abstract member ApplyLayoutAttributes : UIKit.UICollectionViewLayoutAttributes -&gt; unit&#xA;override this.ApplyLayoutAttributes : UIKit.UICollectionViewLayoutAttributes -&gt; unit" Usage="uICollectionReusableView.ApplyLayoutAttributes layoutAttributes" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("applyLayoutAttributes:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="layoutAttributes" Type="UIKit.UICollectionViewLayoutAttributes" />
</Parameters>
<Docs>
<param name="layoutAttributes">
<para>The layout attributes to apply to your collection view.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<summary>Applies the specified layout attributes to this UICollectionReusableView.</summary>
<remarks>To be added.</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.UICollectionReusableView.ClassHandle" />
<MemberSignature Language="F#" Value="member this.ClassHandle : nativeint" Usage="UIKit.UICollectionReusableView.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="DidTransition">
<MemberSignature Language="C#" Value="public virtual void DidTransition (UIKit.UICollectionViewLayout oldLayout, UIKit.UICollectionViewLayout newLayout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DidTransition(class UIKit.UICollectionViewLayout oldLayout, class UIKit.UICollectionViewLayout newLayout) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.DidTransition(UIKit.UICollectionViewLayout,UIKit.UICollectionViewLayout)" />
<MemberSignature Language="F#" Value="abstract member DidTransition : UIKit.UICollectionViewLayout * UIKit.UICollectionViewLayout -&gt; unit&#xA;override this.DidTransition : UIKit.UICollectionViewLayout * UIKit.UICollectionViewLayout -&gt; unit" Usage="uICollectionReusableView.DidTransition (oldLayout, newLayout)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("didTransitionFromLayout:toLayout:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="oldLayout" Type="UIKit.UICollectionViewLayout" />
<Parameter Name="newLayout" Type="UIKit.UICollectionViewLayout" />
</Parameters>
<Docs>
<param name="oldLayout">To be added.</param>
<param name="newLayout">To be added.</param>
<summary>Indicates that a transition has completed.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance">
<MemberSignature Language="C#" Value="public static UIKit.UICollectionReusableView.UICollectionReusableViewAppearance GetAppearance (UIKit.UITraitCollection traits);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UICollectionReusableView/UICollectionReusableViewAppearance GetAppearance(class UIKit.UITraitCollection traits) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.GetAppearance(UIKit.UITraitCollection)" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection -&gt; UIKit.UICollectionReusableView.UICollectionReusableViewAppearance" Usage="UIKit.UICollectionReusableView.GetAppearance traits" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UICollectionReusableView+UICollectionReusableViewAppearance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
</Parameters>
<Docs>
<param name="traits">To be added.</param>
<summary>Returns an appearance proxy for the specified <paramref name="traits" />.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance">
<MemberSignature Language="C#" Value="public static UIKit.UICollectionReusableView.UICollectionReusableViewAppearance GetAppearance (UIKit.UITraitCollection traits, params Type[] containers);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UICollectionReusableView/UICollectionReusableViewAppearance GetAppearance(class UIKit.UITraitCollection traits, class System.Type[] containers) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.GetAppearance(UIKit.UITraitCollection,System.Type[])" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection * Type[] -&gt; UIKit.UICollectionReusableView.UICollectionReusableViewAppearance" Usage="UIKit.UICollectionReusableView.GetAppearance (traits, containers)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UICollectionReusableView+UICollectionReusableViewAppearance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
<Parameter Name="containers" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="traits">To be added.</param>
<param name="containers">To be added.</param>
<summary>Returns an appearance proxy for the specified <paramref name="traits" /> when found in the <paramref name="containers" /> containment hierarchy.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance&lt;T&gt;">
<MemberSignature Language="C#" Value="public static UIKit.UICollectionReusableView.UICollectionReusableViewAppearance GetAppearance&lt;T&gt; () where T : UIKit.UICollectionReusableView;" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UICollectionReusableView/UICollectionReusableViewAppearance GetAppearance&lt;(class UIKit.UICollectionReusableView) T&gt;() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.GetAppearance``1" />
<MemberSignature Language="F#" Value="static member GetAppearance : unit -&gt; UIKit.UICollectionReusableView.UICollectionReusableViewAppearance (requires 'T :&gt; UIKit.UICollectionReusableView)" Usage="UIKit.UICollectionReusableView.GetAppearance " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UICollectionReusableView+UICollectionReusableViewAppearance</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters />
<Docs>
<typeparam name="T">The type for which the UIAppearance proxy must be returned. This is a subclass of UICollectionReusableView.</typeparam>
<summary>Obtains the appearance proxy <see cref="T:UIKit.UICollectionReusableView.UICollectionReusableViewAppearance" /> for the subclass of UICollectionReusableView.</summary>
<returns>
<para>appearance proxy object for the specified type.</para>
</returns>
<remarks>
<para>Setting any appearance properties on the returned object will affect the appearance of all classes and subclasses of the type parameter.</para>
<para>Unlike the <see cref="P:UIKit.UICollectionReusableView.Appearance" /> property, or the <see cref="M:UIKit.UICollectionReusableView.AppearanceWhenContainedIn(System.Type[])" /> method which only work on instances of this particular class, the proxies returned by GetAppearance can be used to change the style of subclasses.</para>
<para>The following example shows how the GetAppearance method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var myTheme = UICollectionReusableView.GetAppearance<MyUICollectionReusableViewSubclass> ();
myTheme.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="GetAppearance&lt;T&gt;">
<MemberSignature Language="C#" Value="public static UIKit.UICollectionReusableView.UICollectionReusableViewAppearance GetAppearance&lt;T&gt; (UIKit.UITraitCollection traits) where T : UIKit.UICollectionReusableView;" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UICollectionReusableView/UICollectionReusableViewAppearance GetAppearance&lt;(class UIKit.UICollectionReusableView) T&gt;(class UIKit.UITraitCollection traits) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.GetAppearance``1(UIKit.UITraitCollection)" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection -&gt; UIKit.UICollectionReusableView.UICollectionReusableViewAppearance (requires 'T :&gt; UIKit.UICollectionReusableView)" Usage="UIKit.UICollectionReusableView.GetAppearance traits" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UICollectionReusableView+UICollectionReusableViewAppearance</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T">
<Constraints>
<BaseTypeName>UIKit.UICollectionReusableView</BaseTypeName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
</Parameters>
<Docs>
<typeparam name="T">The type for which the UIAppearance proxy must be returned. This is a subclass of UICollectionReusableView.</typeparam>
<param name="traits">Trait collection to match.</param>
<summary>Obtains the appearance proxy <see cref="T:UIKit.UICollectionReusableView.UICollectionReusableViewAppearance" /> for the subclass of UICollectionReusableView.</summary>
<returns>
<para>appearance proxy object for the specified type.</para>
</returns>
<remarks>
<para>The returned object represents the UIAppearance proxy where developers can set appearance properties for instances of UICollectionReusableView.</para>
<para>Unlike the <see cref="P:UIKit.UICollectionReusableView.Appearance" /> property, or the <see cref="M:UIKit.UICollectionReusableView.AppearanceWhenContainedIn(System.Type[])" /> method which only work on instances of this particular class, the proxies returned by GetAppearance can be used to change the style of subclasses.</para>
<para>The following example shows how the GetAppearance method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var myTheme = UICollectionReusableView.GetAppearance<MyUICollectionReusableViewSubclass> (myTraits, );
myTheme.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="GetAppearance&lt;T&gt;">
<MemberSignature Language="C#" Value="public static UIKit.UICollectionReusableView.UICollectionReusableViewAppearance GetAppearance&lt;T&gt; (UIKit.UITraitCollection traits, params Type[] containers) where T : UIKit.UICollectionReusableView;" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UICollectionReusableView/UICollectionReusableViewAppearance GetAppearance&lt;(class UIKit.UICollectionReusableView) T&gt;(class UIKit.UITraitCollection traits, class System.Type[] containers) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.GetAppearance``1(UIKit.UITraitCollection,System.Type[])" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection * Type[] -&gt; UIKit.UICollectionReusableView.UICollectionReusableViewAppearance (requires 'T :&gt; UIKit.UICollectionReusableView)" Usage="UIKit.UICollectionReusableView.GetAppearance (traits, containers)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UICollectionReusableView+UICollectionReusableViewAppearance</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T">
<Constraints>
<BaseTypeName>UIKit.UICollectionReusableView</BaseTypeName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
<Parameter Name="containers" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type for which the UIAppearance proxy must be returned. This is a subclass of UICollectionReusableView.</typeparam>
<param name="traits">Trait collection to match.</param>
<param name="containers">List of types that the developer wishes to have as the containers to apply this particular appearance.</param>
<summary>Obtains the appearance proxy <see cref="T:UIKit.UICollectionReusableView.UICollectionReusableViewAppearance" /> for the subclass of UICollectionReusableView that has the specified trait collection when the view is hosted in the specified hierarchy.</summary>
<returns>
<para>appearance proxy object for the specified type.</para>
</returns>
<remarks>
<para>The returned object represents the UIAppearance proxy where developers can set appearance properties for instances of UICollectionReusableView that has the specified trait collection when the view is hosted in the specified hierarchy when those instances are contained in the hierarchy specified by the <paramref name="containers" /> parameter.</para>
<para>Unlike the <see cref="P:UIKit.UICollectionReusableView.Appearance" /> property, or the <see cref="M:UIKit.UICollectionReusableView.AppearanceWhenContainedIn(System.Type[])" /> method which only work on instances of this particular class, the proxies returned by GetAppearance can be used to change the style of subclasses.</para>
<para>The following example shows how the GetAppearance method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var myTheme = UICollectionReusableView.GetAppearance<MyUICollectionReusableViewSubclass> (myTraits, typeof (UINavigationBar), typeof (UIPopoverController));
myTheme.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="PreferredLayoutAttributesFittingAttributes">
<MemberSignature Language="C#" Value="public virtual UIKit.UICollectionViewLayoutAttributes PreferredLayoutAttributesFittingAttributes (UIKit.UICollectionViewLayoutAttributes layoutAttributes);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class UIKit.UICollectionViewLayoutAttributes PreferredLayoutAttributesFittingAttributes(class UIKit.UICollectionViewLayoutAttributes layoutAttributes) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.PreferredLayoutAttributesFittingAttributes(UIKit.UICollectionViewLayoutAttributes)" />
<MemberSignature Language="F#" Value="abstract member PreferredLayoutAttributesFittingAttributes : UIKit.UICollectionViewLayoutAttributes -&gt; UIKit.UICollectionViewLayoutAttributes&#xA;override this.PreferredLayoutAttributesFittingAttributes : UIKit.UICollectionViewLayoutAttributes -&gt; UIKit.UICollectionViewLayoutAttributes" Usage="uICollectionReusableView.PreferredLayoutAttributesFittingAttributes layoutAttributes" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("preferredLayoutAttributesFittingAttributes:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UICollectionViewLayoutAttributes</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="layoutAttributes" Type="UIKit.UICollectionViewLayoutAttributes" />
</Parameters>
<Docs>
<param name="layoutAttributes">To be added.</param>
<summary>Called to allow the cell to change the layout attributes.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PrepareForReuse">
<MemberSignature Language="C#" Value="public virtual void PrepareForReuse ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void PrepareForReuse() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.PrepareForReuse" />
<MemberSignature Language="F#" Value="abstract member PrepareForReuse : unit -&gt; unit&#xA;override this.PrepareForReuse : unit -&gt; unit" Usage="uICollectionReusableView.PrepareForReuse " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("prepareForReuse")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Called prior to this <see cref="T:UIKit.UICollectionReusableView" /> being reused by the <see cref="T:UIKit.UICollectionView" />'s reuse queue.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ReuseIdentifier">
<MemberSignature Language="C#" Value="public virtual Foundation.NSString ReuseIdentifier { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Foundation.NSString ReuseIdentifier" />
<MemberSignature Language="DocId" Value="P:UIKit.UICollectionReusableView.ReuseIdentifier" />
<MemberSignature Language="F#" Value="member this.ReuseIdentifier : Foundation.NSString" Usage="UIKit.UICollectionReusableView.ReuseIdentifier" />
<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>get: Foundation.Export("reuseIdentifier", ObjCRuntime.ArgumentSemantic.Copy)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Foundation.NSString</ReturnType>
</ReturnValue>
<Docs>
<summary>Used to specify kinds of UICollectionReusableView's that may be reused by the queue.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="WillTransition">
<MemberSignature Language="C#" Value="public virtual void WillTransition (UIKit.UICollectionViewLayout oldLayout, UIKit.UICollectionViewLayout newLayout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void WillTransition(class UIKit.UICollectionViewLayout oldLayout, class UIKit.UICollectionViewLayout newLayout) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UICollectionReusableView.WillTransition(UIKit.UICollectionViewLayout,UIKit.UICollectionViewLayout)" />
<MemberSignature Language="F#" Value="abstract member WillTransition : UIKit.UICollectionViewLayout * UIKit.UICollectionViewLayout -&gt; unit&#xA;override this.WillTransition : UIKit.UICollectionViewLayout * UIKit.UICollectionViewLayout -&gt; unit" Usage="uICollectionReusableView.WillTransition (oldLayout, newLayout)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("willTransitionFromLayout:toLayout:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="oldLayout" Type="UIKit.UICollectionViewLayout" />
<Parameter Name="newLayout" Type="UIKit.UICollectionViewLayout" />
</Parameters>
<Docs>
<param name="oldLayout">To be added.</param>
<param name="newLayout">To be added.</param>
<summary>Indicates that a transition will shortly begin.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.