DocumentObjectExtensionMethods

public static class DocumentObjectExtensionMethods
Provides extension methods for IDocumentObject types.

Methods

AllInstanceIds

#Example
public static HashSet<Guid> AllInstanceIds(this IEnumerable<IDocumentObject> objects)
Create a hash set containing all the instance Ids of a set of objects. This includes the subobjects.
objects (IEnumerable<IDocumentObject>)

IterateOverAllInstanceIds

#Example
public static IEnumerable<Guid> IterateOverAllInstanceIds(this IEnumerable<IDocumentObject> objects)
Iterate over the InstanceIds of all objects and subobjects in a collection.
objects (IEnumerable<IDocumentObject>)

IterateOverAllMessages

#Example
public static IEnumerable<Message> IterateOverAllMessages(this IDocumentObject obj)
Try and enumerate over all messages in an object family.
obj (IDocumentObject)Object to inspect.

SmartScrollX

#Example
public static bool SmartScrollX(this INestedScroller scroller, float xOffset)
Perform a scrolling operation in X, with automatic limiting.
scroller (INestedScroller)Object to scroll.
xOffset (float)New horizontal scrolling offset.
True if the scroller was modified.

SmartScrollY

#Example
public static bool SmartScrollY(this INestedScroller scroller, float yOffset)
Perform a scrolling operation in Y, with automatic limiting.
scroller (INestedScroller)Object to scroll.
yOffset (float)New vertical scrolling offset.
True if the scroller was modified.

SortTopToBottom<T>

#Example
public static void SortTopToBottom<T>(this List<T> list)
Sort the objects in a list by their attribute bounds from top to bottom.
list (List<T>)

SortTopToBottom<T>

#Example
public static void SortTopToBottom<T>(this T[] array)
Sort the objects in an array by their attribute bounds from top to bottom.
array (T[])