Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Open Vision for NET
»
NOV Diagram for .NET
»
Programmatically draw line shape for library
Programmatically draw line shape for library
Post Reply
Programmatically draw line shape for library
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Ashley Davy
Ashley Davy
posted 4 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 36,
Visits: 119
I am building a custom library of shapes so that the user can drag and drop them onto the grid. I would like to build a shape that is a line that has the endpoints so that the user can resize the line after it is dropped on the grid. It should work similar to the Alternative Branch 1 in the Decision Tree Shapes library. Below is my code that is used to draw the shape but it does not contain the handles to resize the line or reposition the ends of the line. Also I need to turn off the rotation circle.
Thanks,
Ashley
Private Function DrawFillet4() As Nevron.Nov.Diagram.NShape
Dim FilletShape As Nevron.Nov.Diagram.NShape = New Nevron.Nov.Diagram.NShape()
Dim TopMoveTo As NMoveTo = New NMoveTo(0, 0)
TopMoveTo.ShowFill = False
FilletShape.Geometry.Add(TopMoveTo)
FilletShape.Geometry.LineTo(300, 0)
'FilletShape.AllowRotate = False
'FilletShape.AllowResizeX = False
'FilletShape.AllowResizeY = False
Dim StrokeFillet As NStroke = New NStroke()
StrokeFillet.Width = 3
StrokeFillet.Color = New NColor(pnlSymbolColor.BackColor.R, pnlSymbolColor.BackColor.G, pnlSymbolColor.BackColor.B)
FilletShape.Geometry.Stroke = StrokeFillet
Return FilletShape
End Function
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Programmatically draw line shape for library
Ashley Davy
-
4 Years Ago
Hello, You can use the following code to create a shape identical to...
Nevron Support
-
4 Years Ago
Thanks for the answer. Can you explain the following code. I am not...
Ashley Davy
-
4 Years Ago
Hi Ashley, Relative drawing commands draw geometry primitives on...
Nevron Support
-
4 Years Ago
In continuing to build out my library how would I programmatically add...
Ashley Davy
-
4 Years Ago
Hi Ashley, You can use the following code to create a text shape:...
Nevron Support
-
4 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search