We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Measure Line

I see there is a measure line in the Basic Symbols pallete.

How is this accomplished?

If I wanted to create a symbol like it, that automatically measures, but with an adjustable font size, how do I go about it?

And, more generally, how does one go about creating custom PROGRAMMATIC symbols (symbols with special behavior, such as the measure line) and put those into a symbol pallete?


Thanks
Eric


3 Replies

JJ Jisha Joy Syncfusion Team January 12, 2008 06:48 AM UTC

Hi ERobishaw ,
Thank you for your interest in SYncfusion Products.

You can use the Symbol designer for creating custom symbols.
You can use the Symbol designer from the below location:
Program Files\Syncfusion\Essential Studio\X.X.X.X\Windows\Diagram.Windows\Symbol Designer

Online Documentation link for using Symbol Designer:
http://www2.syncfusion.com/ug_61/diagram/SymbolDesigner.html

Please refere the below Browser sample for Custom Symbols
\\Syncfusion\EssentialStudio\X.X.X.X\Windows\Diagram.Windows\Samples\2.0\Symbol Design\CustomSymbol

Kindly try this and let me know if this helps.
Regards,
Jisha



ER ERobishaw January 15, 2008 08:24 PM UTC

Please read the message before responding with a generic answer!!!! (Almost every message I leave here gets answered this way, and it's quite a waste of time).


I want to create a PROGRAMMATIC symbol similar to the Measure Line symbol.

This cannot be done with the Diagram designer.





AD Administrator Syncfusion Team January 22, 2008 05:31 PM UTC

Hi ERobishaw,

Sorry for the delayed response in getting back to you.

MeasureLine

You can draw measure line using Syncfusion.Windows.Forms.Diagram.MeasureLine class. The following code snippet illustrates this.

[C#]

// Start point
System.Drawing.PointF start = new System.Drawing.PointF(40, 0);
// End point
System.Drawing.PointF end = new System.Drawing.PointF(40, 100);

Syncfusion.Windows.Forms.Diagram.MeasureLine line = new MeasureLine(start, end);
this.diagram1.Model.AppendChild(line);

Sample reference

Please refer the sample that demonstrates the same.

http://websamples.syncfusion.com/samples/Diagram.Windows/F70957/main.htm

Please let me know if this helps you.

Regards,
Jaya


Loader.
Live Chat Icon For mobile
Up arrow icon