Diagram position

Nov 19, 2013 at 6:02 PM

How can I set diagram position at left, top corner and disable margins and shadow of diagram?

Nov 20, 2013 at 7:09 AM
Edited Nov 20, 2013 at 7:22 AM
You can set the size of the diagram (Diagram.Width and Diagram.Height) and you can move the displayed part by scrolling (Display.ScrollTo and Display.ScrollBy).

The position of the diagram inside the display is always calculated by the Display component and cannot be influenced unless you derive your own display and implement something else.

You can disable the shadow by setting Diagram.BackgroundColor and Diagram.BackgroundGradientColor to Color.Transparent.
There is an internal property Display.DrawDiagramSheet which switches diagram sheet drawing on/off, but as it is internal, you will not be able to access it - unless you change it using Reflection or change the NShape source code and recompile the assemblies.