Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class Body.FaceContainer

Last update: 16.07.2025

Namespace: VM.Managed.CAD
Assembly: VMAppCore.dll

This class is to represent the face container.

public sealed class Body.FaceContainer : LinkContainer, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable, IPostDeserialized

Inheritance

object ← ObservableObject ← LinkableBase ← LinkContainer ← Body.FaceContainer

Implements

IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable, IPostDeserialized

Inherited Members

LinkContainer.SetModified(), LinkContainer.raise_OnUpdating(object, LinkEventArgs), LinkContainer.raise_OnUpdate(object, LinkEventArgs), LinkContainer.raise_OnDestroying(object, LinkEventArgs), LinkContainer.raise_OnDestroy(object, LinkEventArgs), LinkContainer.raise_OnAdded(object, AddToDocEventArgs), LinkContainer.raise_OnRemoved(object, RemoveFromDocEventArgs), LinkContainer.GetTargetListForUpdate(), LinkContainer.SkipUpdateObjectImpl(), LinkContainer.Initialize(Unit.ConvertFactor), LinkContainer.SetFlagWhenXMLFile(string, bool), LinkContainer.SetContainer(IOwned, bool), LinkContainer.Container, LinkContainer.Owner, LinkContainer.Document, LinkContainer.ID, LinkContainer.IsChildExternable, LinkContainer.IsExternable, LinkContainer.OnRemoved, LinkContainer.OnAdded, LinkContainer.OnDestroy, LinkContainer.OnDestroying, LinkContainer.OnUpdate, LinkContainer.OnUpdating, ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Properties

Count

Gets the number of elements contained in the .

public int Count { get; }

Property Value

int

IsReadOnly

Gets a value indicating whether the is read-only.

public bool IsReadOnly { get; }

Property Value

bool

this[uint]

public Face this[uint nIndex] { get; }

Property Value

Face

Methods

Add(Face)

Adds an item to the [Not Supported].

public void Add(Face A_0)

Parameters

A_0 Face

Clear()

Removes all items from the [Not Supported].

public void Clear()

Contains(Face)

Determines whether the contains a specific value.

public bool Contains(Face face)

Parameters

face Face

The object to locate in the .

Returns

bool

true if face is found in the ; otherwise, false.

CopyTo(Face[], int)

Copies the elements of the to an , starting at a particular index.

public void CopyTo(Face[] arr, int arrayIndex)

Parameters

arr Face[]

The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.

arrayIndex int

The zero-based index in arr at which copying begins.

Exceptions

ArgumentNullException

arr is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

<code class="paramref">arr</code> is multidimensional.

-or- arrayIndex is equal to or greater than the length of arr. -or- The number of elements in the source is greater than the available space from arrayIndex to the end of the destination arr. -or- Type arr cannot be cast automatically to the type of the destination arr.

GetCreatedFace(uint)

Gets the created face.

public Face GetCreatedFace(uint nIndex)

Parameters

nIndex uint

Index of the n.

Returns

Face

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<Face> GetEnumerator()

Returns

IEnumerator<Face>

A that can be used to iterate through the collection.

GetSchema()

This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return nullNothingnullptra null reference (Nothing in Visual Basic) (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.

public XmlSchema GetSchema()

Returns

XmlSchema

An that describes the XML representation of the object that is produced by the method and consumed by the method.

GetTargetListForUpdate()

Gets the update objects.

public override sealed List<IEventProvider> GetTargetListForUpdate()

Returns

List<IEventProvider>

GetTemporaryFace(uint)

Gets the temporary face.

public Face GetTemporaryFace(uint nIndex)

Parameters

nIndex uint

The face index.

Returns

Face

The specified face.

LinkRequestUpdate(object, LinkEventArgs)

Request for update the linked object.

protected override sealed void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The instance containing the event data.

OnPostDeserialized(StreamingContext)

public void OnPostDeserialized(StreamingContext context)

Parameters

context StreamingContext

ReadXml(XmlReader)

Generates an object from its XML representation.

public void ReadXml(XmlReader reader)

Parameters

reader XmlReader

The XmlReader stream from which the object is deserialized.

Remove(Face)

Removes the specified name [Not Supported].

public bool Remove(Face A_0)

Parameters

A_0 Face

Returns

bool

true if success; otherwise, false.

WriteXml(XmlWriter)

Converts an object into its XML representation.

public void WriteXml(XmlWriter writer)

Parameters

writer XmlWriter

The XmlWriter stream to which the object is serialized.

Connect with Ansys