Revit 2025.3 API
Effect |
Tests whether the effect instance is appropriate for the given vertex format.
Namespace: Autodesk.Revit.DB.DirectContext3D
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public bool MatchesFormat( VertexFormat vertexFormat )
Public Function MatchesFormat ( vertexFormat As VertexFormat ) As Boolean
public: bool MatchesFormat( VertexFormat^ vertexFormat )
member MatchesFormat : vertexFormat : VertexFormat -> bool
Parameters
- vertexFormat VertexFormat
- A vertex format.
Return Value
BooleanTrue if the effect instance is valid for use with the specified vertex format.
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
The vertex format may define vertex data that are not used by the effect instance. However, the effect
instance can not reference vertex data that do not exist in the vertex format.
See Also