ImageGear .NET v25.2 - Updated
calloutLineWidth Property

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace > Mark class : calloutLineWidth Property
Specifies the thickness of a callout's border line.
Syntax
ASP.NET Ajax Javascript (Specification) 
function get_calloutLineWidth() : Number
function set_calloutLineWidth(value : Number)
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfMark.get_calloutLineWidth();
Example

This JavaScript code will create the mark shown in the image on this page.

// Create a new text mark.
var mark = new ImageGear.Web.UI.Mark(ImageGear.Web.UI.MarkType.Text);

// Set various properties.
mark.set_rectangle({ x: 100, y: 200, width: 300, height: 150 });
mark.set_text('This text mark has a distinctly-styled callout.');
mark.set_lineWidth(6);
mark.set_fontSize(24);
mark.set_calloutVisible(true);
mark.set_calloutType(ImageGear.Web.UI.CalloutType.Line);
mark.set_calloutPoint(new ImageGear.Web.UI.Point(275, 225));
mark.set_calloutLineIsDistinct(true);
mark.set_calloutLineWidth(4);
mark.set_calloutLineStyle(ImageGear.Web.UI.LineStyle.Dash);
mark.set_calloutLineColor('#b4b400');
mark.set_fillVisible(false);
mark.set_fontStyle(ImageGear.Web.UI.FontStyle.Bold);
mark.set_textOpacity(127);

// Add the mark to the page.
// Adding it after setting the properties avoids a lot of needless markChanged events.
$find('PageView1').get_artPage().addMark(mark);
Remarks

This property specifies the thickness of a callout's border line. If calloutLineIsDistinct or calloutVisible are false, this property will have no effect on the visual appearance of the mark. If you change the value of this property, this object will raise its propertyChanged event.

This figure shows a text mark whose callout has an outline that is thinner than the rest of the mark.

Mark types: This property is valid for Text marks.
Valid values: a number between 0 to 50 (inclusive). If you set this property to 0, the line may not be visible.
Default value: 1

ImageGear for .NET name: Callout.Border.Width
NotateXpress (version 10) name: N/A

See Also

Reference

Mark class
Mark Members

Is this page helpful?
Yes No
Thanks for your feedback.