DocumentObjectExtensionMethods

public static class DocumentObjectExtensionMethods
Provides extension methods for IDocumentObject types.

Methods

AllInstanceIds

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

IterateOverAllInstanceIds

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

IterateOverAllMessages

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

SmartScrollX

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

SmartScrollY

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

SortTopToBottom<T>

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

SortTopToBottom<T>

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