Method SetTransparency
SetTransparency(ElementId, double)
Sets the transparency of an element.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 6, 0, 0)]
void SetTransparency(ElementId inElementId, double inTransparency)
Parameters
| Type | Name | Description |
|---|---|---|
| ElementId | inElementId | Identifier of the element to modify. |
| double | inTransparency | New transparency of the element within |
Remarks
When the transparency is equal to 0, the element is fully opaque.
When the transparency is equal to 1, the element is fully transparent.
The transparency is internally rounded to discrete values, so getting the transparency afterwards will not necessarily return the same value than the one provided when setting it.
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.6.