Profile Picture

NMaster Text XML Format

Posted By Volvick Derose 13 Years Ago
Author
Message
Volvick Derose
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 71, Visits: 1
I wonder if the NMaster string can accept xml format for instance

string xmlStringOne;
String xmlStringTwo

NMaster shapeMaster = new NMaster(shape, NGraphicsUnit.Pixel, xmlStringOne, xmlStringTwo);

please let know if that is possible

For instance, I can have xml format for a shape where I can display subscripts, I want to know if that is possible for xmlStringOne and xmlStringTwo in the master

Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi Volvick,

You can show subscripts and superscripts in a NMaster description by using the appropriate Unicode characters. The following is a simple example: 

 

======================================================================

// Create a library document

NLibraryDocument libDoc = new NLibraryDocument();

 

// Create a master and use a superscript 2 in its description

NMaster a = new NMaster(new NRectangleShape(0, 0, 2, 2), NMeterMetricUnit.Meter, "Square", "Square with area of 4 m\u00B2");

libDoc.AddChild(a);

 

// Create a library view

NLibraryView libView = new NLibraryView();

libView.Document = libDoc;

libView.Dock = DockStyle.Fill;

 

// Create a simple form to host the library view

Form form = new Form();

form.Controls.Add(libView);

form.Text = "Library";

form.FormBorderStyle = FormBorderStyle.FixedToolWindow;

form.TopMost = true;

 

// Show the form

form.Show(); 

======================================================================

 

This code will produce the following form:

 



Best Regards,
Nevron Support Team



Volvick Derose
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 71, Visits: 1
Thank you very much, I will implement that

Volvick Derose
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 71, Visits: 1
I am not too familiar with those escape characters. What I need to do, I need to put something like P subscript N, but right now I am using something like P[N]; which I don't like. I tried the chart in Wikipedia, but it looks like those characters are preset. There must be a way to do that

Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi Volvick,

 

Check out this Wikipedia article: Unicode subscripts and superscripts



Best Regards,
Nevron Support Team



Volvick Derose
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 71, Visits: 1
I did not look at the pdf document. I should have scrolled down a little bit more

I tried, it did not appear big enough; looks like I have to use bracket instead



Similar Topics


Reading This Topic