Best Regards,Nevron Support Team
shape.Style.FillStyle = new NSizeF(width, (height/2)); shape.CollapsedSize = new NColorFillStyle(backgroundColor);shape.Name = name;shape.Text = shapeText; shape.Tag = tag;NTextStyle textStyle = new NTextStyle(ftInputs, IOsColor); //Create a NTextStyle object textStyle.StringFormatStyle.HorzAlign = Nevron.HorzAlign.Left; //Horizontal alignmenttextStyle.StringFormatStyle.VertAlign = Nevron.VertAlign.Top; //Vertical alignmenttextStyle.Offset =new NPointL(2, 2); //The offset within the objectNStyle.SetTextStyle(shape, textStyle); //Set the objects text style
shape.Name = name;shape.Text = shapeText;
shape.Tag = tag;
NTextStyle textStyle = new NTextStyle(ftInputs, IOsColor); //Create a NTextStyle object
textStyle.StringFormatStyle.HorzAlign = Nevron.HorzAlign.Left; //Horizontal alignmenttextStyle.StringFormatStyle.VertAlign = Nevron.VertAlign.Top; //Vertical alignmenttextStyle.Offset =new NPointL(2, 2); //The offset within the object
NStyle.SetTextStyle(shape, textStyle); //Set the objects text style
In the above code, textStyle is customizing entire text to font: arial , 10.I want shape name to be bolded. my text contains shape name and additional text. how to make shape name bolded.Regards,Suren