Share via


IMDLObjectContainerComponent Interface

Definition

This interface represents the Objective-C protocol MDLObjectContainerComponent.

[Foundation.Protocol(Name="MDLObjectContainerComponent", WrapperType=typeof(ModelIO.MDLObjectContainerComponentWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="AddObject", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(ModelIO.MDLObject) }, Selector="addObject:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RemoveObject", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(ModelIO.MDLObject) }, Selector="removeObject:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetObject", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.UIntPtr) }, ReturnType=typeof(ModelIO.MDLObject), Selector="objectAtIndexedSubscript:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="count", IsProperty=true, IsRequired=true, IsStatic=false, Name="Count", PropertyType=typeof(System.UIntPtr), Selector="count")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="objects", IsProperty=true, IsRequired=true, IsStatic=false, Name="Objects", PropertyType=typeof(ModelIO.MDLObject[]), Selector="objects")]
public interface IMDLObjectContainerComponent : IDisposable, ModelIO.IMDLComponent
[<Foundation.Protocol(Name="MDLObjectContainerComponent", WrapperType=typeof(ModelIO.MDLObjectContainerComponentWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="AddObject", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(ModelIO.MDLObject) }, Selector="addObject:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RemoveObject", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(ModelIO.MDLObject) }, Selector="removeObject:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetObject", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.UIntPtr) }, ReturnType=typeof(ModelIO.MDLObject), Selector="objectAtIndexedSubscript:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="count", IsProperty=true, IsRequired=true, IsStatic=false, Name="Count", PropertyType=typeof(System.UIntPtr), Selector="count")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="objects", IsProperty=true, IsRequired=true, IsStatic=false, Name="Objects", PropertyType=typeof(ModelIO.MDLObject[]), Selector="objects")>]
type IMDLObjectContainerComponent = interface
    interface INativeObject
    interface IDisposable
    interface IMDLComponent
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
Count

Gets the number of objects in this container.

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
Objects

Gets the list of objects that belong to this IMDLObjectContainerComponent.

Methods

Name Description
AddObject(MDLObject)

Adds object to the list of objects that are contained by this IMDLObjectContainerComponent.

GetObject(UIntPtr)

Returns the object at the specified index.

RemoveObject(MDLObject)

Removes object from the list of objects that are contained by this IMDLObjectContainerComponent.

Extension Methods

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

Applies to