(UTC)
Welcome, Guest. Please
Login
or
Register
News:
Board Index
Help
Search
Login
Register
The MindFusion Forums
›
Flow Diagramming Components
›
Windows Forms
› shape
(Moderator: Slavcho)
‹
Previous Topic
|
Next Topic
›
Pages: 1
Send Topic
Print
shape (Read 2305 times)
hadni
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 10
Joined: Jan 18
th
, 2011
shape
Feb 16
th
, 2011 at 7:10am
Print Post
hello, i want to make an ellipse shapenode but made of dotted line style..
is it possible? thx..
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: shape
Reply #1 -
Feb 16
th
, 2011 at 7:23am
Print Post
Assign to node.Pen a Pen instance whose DashStyle is set to Dot.
I hope that helps,
Stoyan
IP Logged
hadni
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 10
Joined: Jan 18
th
, 2011
Re: shape
Reply #2 -
Feb 16
th
, 2011 at 8:01am
Print Post
sorry i don't understand
supposed i have
dim a as shapenode
a.Shape = Shape.FromId("Ellipse")
how to set the pen style?
IP Logged
hadni
YaBB Newbies
Offline
I love YaBB 1G - SP1!
Posts: 10
Joined: Jan 18
th
, 2011
Re: shape
Reply #3 -
Feb 16
th
, 2011 at 8:05am
Print Post
ooh, ic..
Dim a As ShapeNode
a = Diagram2.Factory.CreateShapeNode(0, 10, 10, 10)
a.Shape = Shape.FromId("Ellipse")
a.Pen.DashStyle = DashStyle.Dash
i guess like that right?
thank you so much
IP Logged
Stoyo
God Member
Offline
MindFusion support
Posts: 13230
Joined: Jul 20
th
, 2005
Re: shape
Reply #4 -
Feb 16
th
, 2011 at 11:33am
Print Post
The code above will work, but if you need to change the style in response to some event handler, you better assign a new Pen instance or otherwise it would not repaint:
a.Pen = new MindFusion.Drawing.Pen(...);
IP Logged
Pages: 1
Send Topic
Print
‹
Previous Topic
|
Next Topic
›
Forum Jump »
Board Index
» 10 most recent Posts
» 10 most recent Topics
General
News
Discussion
Flow Diagramming Components
News
Feature Suggestions
Windows Forms ««
WPF
Html Canvas & JavaScript
WinUI 3
Blazor
ASP.NET MVC
ASP.NET
Java Swing
ActiveX
.NET MAUI and Xamarin
Android
Cocoa Touch
Bug Reports
Scheduling and Gantt Components
News
Feature Suggestions
Windows Forms
WPF
ASP.NET
Html & JavaScript
Java Swing
.NET MAUI and Xamarin
Bug Reports
Gauge and Chart Components
News
Feature Suggestions
Windows Forms
WPF
Blazor
ASP.NET
Html Canvas & JavaScript
Java Swing
.NET MAUI and Xamarin
Bug Reports
Grid and Spreadsheet Components
News
Feature Suggestions
Windows Forms
WPF
Html & JavaScript
Java Swing
Bug Reports
Virtual Keyboard Components
News
Windows Forms
WPF
Avalonia
Java Swing
Html & JavaScript
Bug Reports
MindFusion.Reporting
News
Feature Suggestions
Windows Forms
WPF
Silverlight
Bug Reports
MindFusion.UI controls
Windows Forms
WPF
ASP.NET
Other MindFusion tools
News
Feature Suggestions
Discussion
Bug Reports
Archived Boards
Silverlight
.NET Compact Framework
Silverlight
Silverlight
« Board Index
‹ Board
The MindFusion Forums
» Powered by
YaBB 2.6.11
!
YaBB Forum Software
© 2000-2025. All Rights Reserved.