EditorExtensionZoomCenter Method |
Zooms in current viewport to the specified scale and center.
Namespace:
Gile.AutoCAD.R20.Extension
Assembly:
Gile.AutoCAD.R20.Extension (in Gile.AutoCAD.R20.Extension.dll) Version: 2.0.0.0 (2.0.0.0)
Syntaxpublic static void ZoomCenter(
this Editor ed,
Point3d center,
double scale = 1
)
<ExtensionAttribute>
Public Shared Sub ZoomCenter (
ed As Editor,
center As Point3d,
Optional scale As Double = 1
)
public:
[ExtensionAttribute]
static void ZoomCenter(
Editor^ ed,
Point3d center,
double scale = 1
)
[<ExtensionAttribute>]
static member ZoomCenter :
ed : Editor *
center : Point3d *
?scale : float
(* Defaults:
let _scale = defaultArg scale 1
*)
-> unit
Parameters
- ed
- Type: Editor
Instance to which the method applies. - center
- Type: Point3d
Viewport center. - scale (Optional)
- Type: SystemDouble
Scale (default = 1).
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Editor. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
ExceptionsException | Condition |
---|
ArgumentNullException | Thrown if ed is null. |
See Also