Tuple<Int32, Int32> ModelViewManager.GetViewPortSize(Int32 viewportIndex)

Returns the width and height of the specified viewport.

Parameters

  • viewportIndex
    Type: Int32
    An integer specifying the viewport. Valid values range from -1 to 3, depending the amount of viewports open. When two viewports are open side-by-side (horizontally), 0 refers to the left viewport and 1 refers to the right viewport. When two viewports are open and stacked (vertically), 0 refers to the top viewport and 1 refers to the bottom viewport. When four viewports are open, 0 refers to the top-left viewport, 1 refers to the top-right viewport, 2 refers to the bottom-left viewport and 3 refers to the bottom-right viewport. When -1 is passed in, the image is taken from the active viewport.

Return Value

Type: Tuple<Int32, Int32>
An integer tuple containing the width and the height of the viewport.