Use this property to retrieve and set the configured viewport size
Size value = obj.ViewportSize;
Type:Size