NMaster Text XML Format


Author
Message
Volvick Derose
Volvick Derose
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
Volvick Derose
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
Posts: 71, Visits: 1
Thank you very much, I will implement that
Volvick Derose
Volvick Derose
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Volvick,

 

Check out this Wikipedia article: Unicode subscripts and superscripts



Best Regards,
Nevron Support Team


Volvick Derose
Volvick Derose
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
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search