GrapeCity MultiRow Windows Forms Documentation
GetVerticalViewportCount Method
Example 


Retrieves the number of the vertical viewports.
Syntax
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Function GetVerticalViewportCount() As Integer
Dim instance As GcMultiRow
Dim value As Integer
 
value = instance.GetVerticalViewportCount()
[EditorBrowsable(EditorBrowsableState.Advanced)]
public int GetVerticalViewportCount()

Return Value

An System.Int32 that indicates the number of the vertical viewports.
Example
The following code example shows how to use this method to get viewports count information.This code example is part of a larger example provided for the SplitMode property.
void getViewportInfoButton_Click(object sender, EventArgs e)
        {
            string viewportInfo = "Vertical viewport count: " + this.gcMultiRow1.GetVerticalViewportCount();

            viewportInfo += "\r\n";

            viewportInfo += "Horizontal viewport count: " + this.gcMultiRow1.GetHorizontalViewportCount();

            MessageBox.Show(viewportInfo);
        }
Private Sub getViewportInfoButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles getViewportInfoButton.Click
        Dim viewportInfo As String = "Vertical viewport count: " + Me.gcMultiRow1.GetVerticalViewportCount().ToString()

        viewportInfo += vbCr & vbLf

        viewportInfo += "Horizontal viewport count: " + Me.gcMultiRow1.GetHorizontalViewportCount().ToString()

        MessageBox.Show(viewportInfo)
    End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GcMultiRow Class
GcMultiRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.