GrapeCity MultiRow Windows Forms Documentation
GetHorizontalViewportCount Method
Example 


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

Return Value

An System.Int32 that indicates the number of the horizontal 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.