Application.UsableWidth Property

Gets the available screen width, the maximum number of points to which you can set the width of an InfoPath document window.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property UsableWidth As Integer
    Get
'Usage
Dim instance As Application
Dim value As Integer

value = instance.UsableWidth
public abstract int UsableWidth { get; }

Property Value

Type: System.Int32
The available screen width in points.

Remarks

This member can be accessed without restrictions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

Examples

In the following example, the UsableWidth property is used to display the maximum available screen width in points.

MessageBox.Show(this.Application.UsableWidth.ToString());
MessageBox.Show(Me.Application.UsableWidth.ToString())

See Also

Reference

Application Class

Application Members

Microsoft.Office.InfoPath Namespace