View.CanApplyColorFillScheme Method

Checks if the id can be applied as the scheme id of specified category to this view.


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

Syntax

C#

public bool CanApplyColorFillScheme(
	ElementId categoryId,
	ElementId schemeId
)

Parameters

categoryId  ElementId
The id of category.
schemeId  ElementId
The id of color fill scheme.

Return Value

Boolean
True if the id can be applied as the scheme id of specified category in this view, false otherwise.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

Remarks

The input scheme id could be InvalidElementId to clear the scheme for the specified category.

Some examples of returnning false:

See Also

Reference

View Class
Autodesk.Revit.DB Namespace