Tests whether the given state is valid for the associated view and the context the view is currently in.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public bool IsValidState( PreviewFamilyVisibilityMode state )
Parameters
- state PreviewFamilyVisibilityMode
- A state of the PreviewFamilyVisibilityMode
Return Value
BooleanReturns True if the state is applicable for the view; False otherwise.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |