RenderContentCollection

References
A collection of Render content

Constructors

RenderContentCollection

#Since v6.0
public RenderContentCollection()
Construct an empty collection of RenderContent objects

RenderContentCollection

#Since v6.0
public RenderContentCollection(nint nativePtr)
Internal function to create collection from native pointer
nativePtr (nint)Native pointer

Finalizer

~RenderContentCollection

#
~RenderContentCollection()
Finalizer for RenderContentCollection

Properties

CppPointer

#Since v6.0
public nint CppPointer { get; }
Internal function to get native pointer

Methods

Add

#Since v6.0
public void Add(RenderContentCollection collection)
Add an array of non-const contents to the collection.
collection (RenderContentCollection)The array of contents to add

Append

#Since v6.0
public void Append(RenderContent content)
Append a RenderContent to the collection
content (RenderContent)The array of contents to append.

Clear

#Since v6.0
public void Clear()
Clear the collection.

ContentAt

#Since v6.0
public RenderContent ContentAt(int index)
Content at index
index (int)

ContentNeedsPreviewThumbnail

#Since v7.0
public bool ContentNeedsPreviewThumbnail(RenderContent c, bool includeChildren)
To be documented
c (RenderContent)
includeChildren (bool)

Count

#Since v6.0
public int Count()
The number of items in the collection.
The number of items in the collection.

Dispose

#Since v6.0
public void Dispose()
Dispose function for RenderContentCollection

Find_Sel

#Since v6.0
public RenderContent Find_Sel(Guid uuid)
TODO
uuid (Guid)

FirstTag

#Since v6.13
public string FirstTag()
Gets the first tag
The first tag

GetEnumerator

#Since v6.0
public IEnumerator GetEnumerator()
Enumerates the contents in the collection. This makes it possible to use the collection directly in a foreach loop instead of manually driving a ContentCollectionIterator:
foreach (RenderContent content in collection) { ... }
The collection also implements IEnumerable<RenderContent>, so LINQ can be used on it directly. Note that this method returns the non-generic enumerator for backwards compatibility, which is why the loop variable above is declared as RenderContent rather than var.

GetFilterContentByUsage

#Since v6.9
public FilterContentByUsage GetFilterContentByUsage()
Gets usage filter type for collection
Usage filter type for collection

GetForcedVaries

#Since v6.9
public bool GetForcedVaries()
See SetForcedVaries
Forced varies

GetSearchPattern

#Since v6.0
public string GetSearchPattern()
See SetSearchPattern

Iterator

#Since v6.0
public ContentCollectionIterator Iterator()
Gets an iterator for the collection

NextTag

#Since v6.13
public string NextTag()
Call FirstTag first - this gets the next tag
The next tag

Remove

#Since v6.0
public void Remove(RenderContentCollection collection)
Remove an array of contents from the collection.
collection (RenderContentCollection)Collection of contents to remove

Set

#Since v6.0
public void Set(RenderContentCollection collection)
Set an array of const contents as the collection.
collection (RenderContentCollection)The array of contents to set.

SetForcedVaries

#Since v6.9
public void SetForcedVaries(bool b)
Set the collection to 'varies'. Only valid if the collection is a 'selection' collection. Useful for clients that only support single content selections.
b (bool)Varies if true

SetSearchPattern

#Since v6.0
public void SetSearchPattern(string pattern)
Sets a search pattern for filtering contents. This is not actually used by the iterator, but is stored for use by any UI that wants to filter contents based on a search string by using the function RhRdkCheckSearchPattern()
pattern (string)The search pattern. See RhRdkCheckSearchPattern() for details
Explicit

IEnumerable<RenderContent>.GetEnumerator

#Since v9.0