ColorFillScheme.SetEntries Method

Update scheme entries in batch mode.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

public void SetEntries(
	IList<ColorFillSchemeEntry> entries
)

Parameters

entries  IList<ColorFillSchemeEntry>
Collection of new entries.

Exceptions

ExceptionCondition
ArgumentException There exists entries whose values are duplicated in the input entries. -or- There exists at lease one entry whose value is invalid for the scheme in the input entries. -or- There exists at least one entry in the input entries whose storage type is different with the scheme. -or- There exists at least one entry in the input entries whose fill pattern is invalid for color fill scheme. -or- There exists some inconsistent in the input entries.
ArgumentNullException A non-optional argument was null

Remarks

For by range scheme:

For by value scheme:

To make sure that entry can be added to the scheme, call [M:Autodesk.Revit.DB.ColorFillScheme.AreEntriesConsistentWithScheme(System.Collections.Generic.IList`1{Autodesk.Revit.DB.ColorFillSchemeEntry})] first.

See Also

Reference

ColorFillScheme Class
Autodesk.Revit.DB Namespace