public bool OnDisplayLexiconLookup(object commandObject,
ref UIItemDisplayProperties display)
{
display.Visible = true;
display.Enabled = false;
// Enable the command if the selection exists and we actually have a word.
int ichMin;
int ichLim;
int hvo;
int tag;
int ws;
ITsString tss;
GetWordLimitsOfSelection(out ichMin, out ichLim, out hvo, out tag, out ws, out tss);
if (ichLim > ichMin)
display.Enabled = true;
return true;
}