GetTranparencyInViewport Method (ILayer)

GetTranparencyInViewport Method (ILayer) | Send Feedback
See Also

Transparency[out]
  Transparency percentage (see Remarks)

Viewport
  Viewport

IsOverride[out]
  True if transparency in this Layer is overridden in the specified Viewport, false if not

Gets the transparency percentage for this Layer in the specified Viewport and gets whether the transparency in this Layer is overridden in that Viewport.

# Syntax

Visual Basic |
--- | ---
    Function GetTranparencyInViewport( _
       ByVal Viewport As Viewport, _
       ByRef IsOverride As System.Boolean _
    ) As System.Integer

C# |
--- | ---
    System.int GetTranparencyInViewport(
       Viewport Viewport,
       out System.bool IsOverride
    )

JavaScript |
--- | ---
    GetTranparencyInViewport(
       Viewport : dsViewport
    ) : {
       IsOverride : Boolean,
       Transparency : Number
    }

COM native C++ |
--- | ---
    HRESULT GetTranparencyInViewport(
       IViewport* Viewport,
       VARIANT_BOOL* IsOverride,
       LONG* Transparency
    )

C++ |
--- | ---
    DSRESULT GetTranparencyInViewport(
       dsViewport* Viewport,
       bool* IsOverride,
       long* Transparency
    )

#### Parameters

Viewport
  Viewport
IsOverride[out]
  True if transparency in this Layer is overridden in the specified Viewport, false if not
Transparency[out] or Return Value
  Transparency percentage (see Remarks)

# Remarks

The transparency percentage is between 0 and 90 where 0 means no transparency (opaque).

# See Also

####

ILayer Interface
ILayer Members
ILayer::RemoveTransparencyOverride Method ()
ILayer::RemoveTransparencyOverrides Method ()
ILayer::SetTranparencyInViewport Method ()
ILayer::Transparency Property ()

# Availability

DraftSight V1R6.0