Hide or change the border of a diagram drawing document

Applies to: Nevron Diagram for .NET

How to hide or change the border of a diagram drawing document?

You can hide the border of a drawing document by using the following code:

[C#]
document.BackgroundStyle.FrameStyle.Visible = false;

[VB.NET]
document.BackgroundStyle.FrameStyle.Visible = False

The code below will help you change the standard border frame style:

[C#]
NStandardFrameStyle frameStyle = (NStandardFrameStyle)document.BackgroundStyle.FrameStyle;
frameStyle.InnerBorderWidth = new NLength(5);
frameStyle.InnerBorderColor = Color.Red;
frameStyle.OuterBorderWidth = new NLength(5);
frameStyle.OuterBorderColor = Color.Blue;

[VB.NET]
Dim frameStyle As NStandardFrameStyle = DirectCast(document.BackgroundStyle.FrameStyle, NStandardFrameStyle)
frameStyle.InnerBorderWidth = New NLength(5)
frameStyle.InnerBorderColor = Color.Red
frameStyle.OuterBorderWidth = New NLength(5)
frameStyle.OuterBorderColor = Color.Blue

Article ID: 197, Created On: 7/29/2011, Modified: 3/19/2012