DiagramsFactoryGetScreenCenter Method
Gets the central location of the screen's viewport of a diagram.
Note: the value gets subtracted a bit, as this value is used to get a node to be placed at the center of the screen,
so we need to take the left/top offset into account.
Namespace: MobileTrack.Web.Components.ExtensionsAssembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static Point GetScreenCenter(
this Diagram diagram
)
- diagram Diagram
- Diagram to get the screen's center point from
PointCalculated central point.In Visual Basic and C#, you can call this method as an instance method on any object of type
Diagram. 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).