DocumentScalerT Class

Implements a set of methods and fields to render a document with a logic to control its zoom and position.

Definition

Namespace: SMath.Controls
Assembly: SMath.Controls (in SMath.Controls.dll) Version: 1.2.9018.0
C#
public class DocumentScaler<T>
where T : IDocumentObject
Inheritance
Object    DocumentScalerT

Type Parameters

T
The type of a document to handle.

Constructors

DocumentScalerT Constructor of the DocumentScalerT class with a given document instance and initial geometry options.

Properties

BottomExtraMargin Extra margin on bottom of the Document.
HasSelection 
InitialOffset Initial oofset of the document rendering. Can be used to control a gap between first page and canvas top-left corner.
ScaleFactor Scale factor of the document.
ScaleFactorFull Final scale factor consists of InitialOffset and calculated value.
ScaleMode Mode of the document scaling.
TouchControlsVisible Determines whether touch controls is visible or not.

Methods

DoMove 
DoZoom Zooms a document according to the requested parameters.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetLogicBounds 
GetLogicPoint 
GetLogicSize 
GetScreenPoint 
GetScreenSize 
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetVisibleDocumentBounds 
HandleEndMove 
HandleMove 
HandleStartMove 
IsFocused 
IsSelectionEnd 
IsSelectionStart 
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Paint Renders a document according to its zoom and position.
ResetPosition Resets zoom and position values of the document.
SetDocumentStatus 
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also