Icon

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Share Service >

Icon

Previous page Return to chapter overview Next page

Definition

The shape which displays within the Share window when sharing content.  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 page.

 

Note: 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

ns

public override object Icon
{        
  get
  {
    //use a unicode character as our string which will render an arrow
    string uniCodeArrow = "\u279A";            
    return uniCodeArrow;
  }  
}