DocumentViewerClientEventsRotationChanged Property

Gets or sets the client-side event raised when page rotation is changed. The value should be a valid JavaScript function name which is accessible on the host page. Function names should be specified without parentheses like "FunctionName" or "Namespace.FunctionName".

Definition

Namespace: GleamTech.DocumentUltimate.AspNet.UI
Assembly: GleamTech.DocumentUltimate (in GleamTech.DocumentUltimate.dll) Version: 6.9.7
C#
public string RotationChanged { get; set; }

Property Value

String

Example

Example function:

JavaScript
function documentViewerRotationChanged(sender, e) { 
    //e.pageNumber (1-based)
    //e.rotation (0, 90, 180 or 270 degrees)

    if (e.pageNumber)
        alert("Page " + e.pageNumber + " is rotated " + e.rotation + " degrees");
    else
        alert("All pages are rotated " + e.rotation + " degrees");
}
//

See Also