CODRulerWrapper_T::SetRulerVisible

voidCODRulerWrapper_T::SetRulerVisible(const intnOrientation, const BOOLbVisible)

Turn visibility for a given ruler on or off.

Defined in: OdRulerWrapper.h

Return Value

void

Parameters

nOrientation

Indicates which ruler (horizontal or vertical) is to be affected.

bVisible

TRUE to make the given ruler visible; FALSE to make it invisible.

Comments

This method calls  CODComponent::SetVisible for the specified ruler component. It then calls  CalcMargins to recalculate the left and top margins of the viewport to reflect the change in visibility. The result of CalcMargins is passed to MvcWrapper_T::SetMargins.

See Also

CalcMargins