All Downloads are FREE. Search and download functionalities are using the official Maven repository.

system.windows.controls.ScrollViewer Maven / Gradle / Ivy

/*
 *  MIT License
 *
 *  Copyright (c) 2022 MASES s.r.l.
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a copy
 *  of this software and associated documentation files (the "Software"), to deal
 *  in the Software without restriction, including without limitation the rights
 *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *  copies of the Software, and to permit persons to whom the Software is
 *  furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in all
 *  copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *  SOFTWARE.
 */

/**************************************************************************************
 * 
 *      This code was generated from a template using JCOReflector
 * 
 *      Manual changes to this file may cause unexpected behavior in your application.
 *      Manual changes to this file will be overwritten if the code is regenerated.
 * 
 *************************************************************************************/

package system.windows.controls;

import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;

// Import section
import system.windows.controls.ContentControl;
import system.windows.DependencyObject;
import system.windows.controls.PanningMode;
import system.windows.controls.ScrollBarVisibility;
import system.windows.Visibility;
import system.windows.controls.ScrollChangedEventHandler;


/**
 * The base .NET class managing System.Windows.Controls.ScrollViewer, PresentationFramework, Version=5.0.14.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
 * 

* * See: https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Controls.ScrollViewer */ public class ScrollViewer extends ContentControl { /** * Fully assembly qualified name: PresentationFramework, Version=5.0.14.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 */ public static final String assemblyFullName = "PresentationFramework, Version=5.0.14.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; /** * Assembly name: PresentationFramework */ public static final String assemblyShortName = "PresentationFramework"; /** * Qualified class name: System.Windows.Controls.ScrollViewer */ public static final String className = "System.Windows.Controls.ScrollViewer"; static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName); /** * The type managed from JCOBridge. See {@link JCType} */ public static JCType classType = createType(); static JCEnum enumInstance = null; JCObject classInstance = null; static JCType createType() { try { String classToCreate = className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); if (JCOReflector.getDebug()) JCOReflector.writeLog("Creating %s", classToCreate); JCType typeCreated = bridge.GetType(classToCreate); if (JCOReflector.getDebug()) JCOReflector.writeLog("Created: %s", (typeCreated != null) ? typeCreated.toString() : "Returned null value"); return typeCreated; } catch (JCException e) { JCOReflector.writeLog(e); return null; } } void addReference(String ref) throws Throwable { try { bridge.AddReference(ref); } catch (JCNativeException jcne) { throw translateException(jcne); } } /** * Internal constructor. Use with caution */ public ScrollViewer(java.lang.Object instance) throws Throwable { super(instance); if (instance instanceof JCObject) { classInstance = (JCObject) instance; } else throw new Exception("Cannot manage object, it is not a JCObject"); } public String getJCOAssemblyName() { return assemblyFullName; } public String getJCOClassName() { return className; } public String getJCOObjectName() { return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); } public java.lang.Object getJCOInstance() { return classInstance; } public void setJCOInstance(JCObject instance) { classInstance = instance; super.setJCOInstance(classInstance); } public JCType getJCOType() { return classType; } /** * Try to cast the {@link IJCOBridgeReflected} instance into {@link ScrollViewer}, a cast assert is made to check if types are compatible. * @param from {@link IJCOBridgeReflected} instance to be casted * @return {@link ScrollViewer} instance * @throws java.lang.Throwable in case of error during cast operation */ public static ScrollViewer cast(IJCOBridgeReflected from) throws Throwable { NetType.AssertCast(classType, from); return new ScrollViewer(from.getJCOInstance()); } // Constructors section public ScrollViewer() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException { try { // add reference to assemblyName.dll file addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName); setJCOInstance((JCObject)classType.NewObject()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Methods section public static boolean GetCanContentScroll(DependencyObject element) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("GetCanContentScroll", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static boolean GetIsDeferredScrollingEnabled(DependencyObject element) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (boolean)classType.Invoke("GetIsDeferredScrollingEnabled", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double GetPanningDeceleration(DependencyObject element) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("GetPanningDeceleration", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static double GetPanningRatio(DependencyObject element) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { return (double)classType.Invoke("GetPanningRatio", element == null ? null : element.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static PanningMode GetPanningMode(DependencyObject element) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objGetPanningMode = (JCObject)classType.Invoke("GetPanningMode", element == null ? null : element.getJCOInstance()); return new PanningMode(objGetPanningMode); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static ScrollBarVisibility GetHorizontalScrollBarVisibility(DependencyObject element) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objGetHorizontalScrollBarVisibility = (JCObject)classType.Invoke("GetHorizontalScrollBarVisibility", element == null ? null : element.getJCOInstance()); return new ScrollBarVisibility(objGetHorizontalScrollBarVisibility); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static ScrollBarVisibility GetVerticalScrollBarVisibility(DependencyObject element) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { JCObject objGetVerticalScrollBarVisibility = (JCObject)classType.Invoke("GetVerticalScrollBarVisibility", element == null ? null : element.getJCOInstance()); return new ScrollBarVisibility(objGetVerticalScrollBarVisibility); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void InvalidateScrollInfo() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException, system.componentmodel.InvalidEnumArgumentException, system.componentmodel.Win32Exception, system.MulticastNotSupportedException, system.ObjectDisposedException, system.OutOfMemoryException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("InvalidateScrollInfo"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void LineDown() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("LineDown"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void LineLeft() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("LineLeft"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void LineRight() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("LineRight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void LineUp() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("LineUp"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void OnApplyTemplate() throws Throwable, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.InvalidOperationException, system.IndexOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("OnApplyTemplate"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void PageDown() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("PageDown"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void PageLeft() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("PageLeft"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void PageRight() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("PageRight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void PageUp() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("PageUp"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToBottom() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToBottom"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToEnd() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToEnd"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToHome() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToHome"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToHorizontalOffset(double offset) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToHorizontalOffset", offset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToLeftEnd() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToLeftEnd"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToRightEnd() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToRightEnd"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToTop() throws Throwable, system.ArgumentNullException, system.InvalidOperationException, system.ArgumentException, system.ArgumentOutOfRangeException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToTop"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void ScrollToVerticalOffset(double offset) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.globalization.CultureNotFoundException, system.InvalidOperationException, system.PlatformNotSupportedException, system.ObjectDisposedException, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Invoke("ScrollToVerticalOffset", offset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetCanContentScroll(DependencyObject element, boolean canContentScroll) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetCanContentScroll", element == null ? null : element.getJCOInstance(), canContentScroll); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetHorizontalScrollBarVisibility(DependencyObject element, ScrollBarVisibility horizontalScrollBarVisibility) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetHorizontalScrollBarVisibility", element == null ? null : element.getJCOInstance(), horizontalScrollBarVisibility == null ? null : horizontalScrollBarVisibility.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetIsDeferredScrollingEnabled(DependencyObject element, boolean value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetIsDeferredScrollingEnabled", element == null ? null : element.getJCOInstance(), value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetPanningDeceleration(DependencyObject element, double value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetPanningDeceleration", element == null ? null : element.getJCOInstance(), value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetPanningMode(DependencyObject element, PanningMode panningMode) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetPanningMode", element == null ? null : element.getJCOInstance(), panningMode == null ? null : panningMode.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetPanningRatio(DependencyObject element, double value) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetPanningRatio", element == null ? null : element.getJCOInstance(), value); } catch (JCNativeException jcne) { throw translateException(jcne); } } public static void SetVerticalScrollBarVisibility(DependencyObject element, ScrollBarVisibility verticalScrollBarVisibility) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.PlatformNotSupportedException, system.IndexOutOfRangeException, system.NotSupportedException, system.ObjectDisposedException, system.RankException, system.ArrayTypeMismatchException, system.FormatException { if (classType == null) throw new UnsupportedOperationException("classType is null."); try { classType.Invoke("SetVerticalScrollBarVisibility", element == null ? null : element.getJCOInstance(), verticalScrollBarVisibility == null ? null : verticalScrollBarVisibility.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Properties section public boolean getCanContentScroll() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("CanContentScroll"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setCanContentScroll(boolean CanContentScroll) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("CanContentScroll", CanContentScroll); } catch (JCNativeException jcne) { throw translateException(jcne); } } public boolean getIsDeferredScrollingEnabled() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (boolean)classInstance.Get("IsDeferredScrollingEnabled"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setIsDeferredScrollingEnabled(boolean IsDeferredScrollingEnabled) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("IsDeferredScrollingEnabled", IsDeferredScrollingEnabled); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getContentHorizontalOffset() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ContentHorizontalOffset"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setContentHorizontalOffset(double ContentHorizontalOffset) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ContentHorizontalOffset", ContentHorizontalOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getContentVerticalOffset() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ContentVerticalOffset"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setContentVerticalOffset(double ContentVerticalOffset) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("ContentVerticalOffset", ContentVerticalOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getExtentHeight() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ExtentHeight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getExtentWidth() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ExtentWidth"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getHorizontalOffset() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("HorizontalOffset"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setHorizontalOffset(double HorizontalOffset) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("HorizontalOffset", HorizontalOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getPanningDeceleration() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("PanningDeceleration"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setPanningDeceleration(double PanningDeceleration) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("PanningDeceleration", PanningDeceleration); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getPanningRatio() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("PanningRatio"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setPanningRatio(double PanningRatio) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("PanningRatio", PanningRatio); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getScrollableHeight() throws Throwable, system.PlatformNotSupportedException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ScrollableHeight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getScrollableWidth() throws Throwable, system.PlatformNotSupportedException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ScrollableWidth"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getVerticalOffset() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("VerticalOffset"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setVerticalOffset(double VerticalOffset) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("VerticalOffset", VerticalOffset); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getViewportHeight() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ViewportHeight"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public double getViewportWidth() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { return (double)classInstance.Get("ViewportWidth"); } catch (JCNativeException jcne) { throw translateException(jcne); } } public PanningMode getPanningMode() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("PanningMode"); return new PanningMode(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setPanningMode(PanningMode PanningMode) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("PanningMode", PanningMode == null ? null : PanningMode.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ScrollBarVisibility getHorizontalScrollBarVisibility() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("HorizontalScrollBarVisibility"); return new ScrollBarVisibility(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setHorizontalScrollBarVisibility(ScrollBarVisibility HorizontalScrollBarVisibility) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("HorizontalScrollBarVisibility", HorizontalScrollBarVisibility == null ? null : HorizontalScrollBarVisibility.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public ScrollBarVisibility getVerticalScrollBarVisibility() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.NotSupportedException, system.IndexOutOfRangeException, system.FormatException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("VerticalScrollBarVisibility"); return new ScrollBarVisibility(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void setVerticalScrollBarVisibility(ScrollBarVisibility VerticalScrollBarVisibility) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.ObjectDisposedException, system.InvalidOperationException, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.FormatException, system.NotSupportedException { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.Set("VerticalScrollBarVisibility", VerticalScrollBarVisibility == null ? null : VerticalScrollBarVisibility.getJCOInstance()); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Visibility getComputedHorizontalScrollBarVisibility() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ComputedHorizontalScrollBarVisibility"); return new Visibility(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } public Visibility getComputedVerticalScrollBarVisibility() throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { JCObject val = (JCObject)classInstance.Get("ComputedVerticalScrollBarVisibility"); return new Visibility(val); } catch (JCNativeException jcne) { throw translateException(jcne); } } // Instance Events section public void addScrollChanged(ScrollChangedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.RegisterEventListener("ScrollChanged", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } public void removeScrollChanged(ScrollChangedEventHandler handler) throws Throwable { if (classInstance == null) throw new UnsupportedOperationException("classInstance is null."); try { classInstance.UnregisterEventListener("ScrollChanged", handler); } catch (JCNativeException jcne) { throw translateException(jcne); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy