ImageGear .NET
textColor Property

Specifies the color of text in a text mark.
Syntax
ASP.NET Ajax Javascript (Specification) 
function get_textColor() : String
function set_textColor(value : String)
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfMark.get_textColor();
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: 150, width: 275, height: 75 });
mark.set_text('This is a text mark.\nIt has two lines of text.');
mark.set_fontName('Arial');
mark.set_fontSize(14);
mark.set_fontStyle(ImageGear.Web.UI.FontStyle.Underline | ImageGear.Web.UI.FontStyle.Italic);
mark.set_textHorizontalAlignment(ImageGear.Web.UI.HorizontalAlignment.Center);
mark.set_textColor('#7070ff');

// 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 color of text in a text mark. If you change the value of this property, this object will raise its propertyChanged event.

This figure shows a text mark whose text is light blue.

Mark types: This property is valid for Text marks.
Valid values: A 7-character string representing a color. The first letter must be a "#" symbol and the other six characters must be hexadecimal digits representing the red, green, and blue portions of the color. This is identical to one of the common ways to specify colors in HTML.
Default value: '#000000'

ImageGear for .NET name: TextColor
NotateXpress (version 10) name: TextColor

See Also

Reference

Mark class
Mark Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback