Icon

View as Markdown

Definition

The shape which displays next to the Drawing Tool menu item. Since this is a standard object, any type of icon can be used (unicode characters, custom image file resource, geometry path, etc). For more information on using images to create icons, see the Using Images with Custom Icons.

When using UniCode characters, first ensure that the desired characters exist in the icon pack for the font family used in NinjaTrader.

Property Value

A generic virtual object representing the drawing tools menu icon. This property is read-only.

Syntax

You must override this property using the following syntax:

public override object Icon

Examples

1public override object Icon
2{
3 get
4 {
5 //use a unicode character as our string which will render an arrow
6 string uniCodeArrow = "\u279A";
7 return uniCodeArrow;
8 }
9}