Leadtools.Controls Namespace > ImageViewer Object : ForeCanvasSizeChanged Event |
add_foreCanvasSizeChanged(function(sender, e)) foreCanvasSizeChanged.add(function(sender, e)) remove_foreCanvasSizeChanged(function(sender, e)) foreCanvasSizeChanged.remove(function(sender, e))
When the size of this viewer changes either automatically or as a result of calling OnSizeChanged, the foreground canvas stored in ForeCanvas will be resized to fill the client area of the control and ForeCanvasSizeChanged will occur. This is useful when a user canvas is placed on top of ForeCanvas, such as the annotation canvas.
Parameter | Type | Description |
---|---|---|
sender | 'var' | The source of the event. |
e | EventArgs | The event data. |