Interface IViewer
Implement default view properties of MVC architecture.
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public interface IViewer
Properties
Cursor
Gets or sets the view mouse cursor.
Declaration
Cursor Cursor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Cursor | The mouse cursor. |
EventSink
Gets the reference to viewer event sink.
Declaration
ViewerEventSink EventSink { get; }
Property Value
Type | Description |
---|---|
ViewerEventSink | The event sink. |
Magnification
Gets the magnification percent.
Declaration
float Magnification { get; }
Property Value
Type | Description |
---|---|
System.Single | The magnification percent. |
Model
Gets the reference to diagram model.
Declaration
Model Model { get; }
Property Value
Type | Description |
---|---|
Model | The model. |
Origin
Gets the view origin.
Declaration
PointF Origin { get; }
Property Value
Type | Description |
---|---|
System.Drawing.PointF | The origin. |
RulersHeight
Gets the height of the rulers.
Declaration
int RulersHeight { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The height of the rulers. |
ShowRulers
Gets or sets a value indicating whether view show horizontal and vertical rulers.
Declaration
bool ShowRulers { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
UpdateView()
Updates the view area.
Declaration
void UpdateView()
UpdateView(Node)
Updates the view with the node bounds.
Declaration
void UpdateView(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node |