IsValidValue Method (Color)


Checks that the value is a valid value for this property.

Namespace: Autodesk.Revit.DB.Visual
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2018.1

Syntax

C#
public bool IsValidValue(
	Color color
)
Visual Basic
Public Function IsValidValue ( _
	color As Color _
) As Boolean
Visual C++
public:
bool IsValidValue(
	Color^ color
)

Parameters

color
Type: Autodesk.Revit.DB Color
The value to be checked.

Return Value

True if the value is valid for the property.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions InvalidOperationException Cannot check validity for a property not being edited in AppearanceAssetEditScope.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →