GetLineWeightInViewport Method (ILayer)

GetLineWeightInViewport Method (ILayer) | Send Feedback
See Also

LineWeight[out]
  LineWeight as defined in dsLineWeight_e

Viewport
  Viewport

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

Gets the type of LineWeight for this Layer in the specified Viewport and whether the LineWeight is overridden in that Viewport.

# Syntax

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

C# |
--- | ---
    dsLineWeight_e GetLineWeightInViewport(
       Viewport Viewport,
       out System.bool IsOverride
    )

JavaScript |
--- | ---
    GetLineWeightInViewport(
       Viewport : dsViewport
    ) : {
       IsOverride : Boolean,
       LineWeight : String
    }

COM native C++ |
--- | ---
    HRESULT GetLineWeightInViewport(
       IViewport* Viewport,
       VARIANT_BOOL* IsOverride,
       dsLineWeight_e* LineWeight
    )

C++ |
--- | ---
    DSRESULT GetLineWeightInViewport(
       dsViewport* Viewport,
       bool* IsOverride,
       dsLineWeight_e* LineWeight
    )

#### Parameters

Viewport
  Viewport
IsOverride[out]
  True if the LineWeight for this Layer is overridden in the specified Viewport, false if not
LineWeight[out] or Return Value
  LineWeight as defined in dsLineWeight_e

# See Also

####

ILayer Interface
ILayer Members
ILayer::SetLineWeightInViewport Method ()
ILayer::RemoveLineWeightOverride Method ()
ILayer::RemoveLineWeightOverrides Method ()
ILayer::LineWeight Property ()

# Availability

DraftSight V1R6.0