|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDisplayExpressionProperties
Provides access to the properties for generating a display string.
The display expression allows you to provide a VBScript or JScript expression to use as the display field within ArcMap rather than just a single field. This is usefull if you want to display a map tip as a concatontation or a function of several fields. The value of the resulting display expression is also displayed in the identify and attribute windows if set.
The display expression formula is set via the Expression method on this interface. The resulting display expresion can be quieried for a feature via the IDisplayString.FindDisplayString method.
Note that if you set the display field of a layer to a single field via IFeatureLayer.DisplayField that will fail if a display expression is set. You will need to clear the display expression first by setting the expression to an empty string.
Method Summary | |
---|---|
String |
getExpression()
The VBScript or JScript expression that evaluates and formats the label. |
IAnnotationExpressionEngine |
getExpressionParser()
The object that interprets the expression. |
boolean |
isExpressionSimple()
Indicates if the expression is simple. |
void |
setExpression(String expression)
The VBScript or JScript expression that evaluates and formats the label. |
void |
setExpressionParserByRef(IAnnotationExpressionEngine engine)
The object that interprets the expression. |
void |
setIsExpressionSimple(boolean simpleExpression)
Indicates if the expression is simple. |
Method Detail |
---|
void setExpression(String expression) throws IOException, AutomationException
expression
- The expression (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getExpression() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsExpressionSimple(boolean simpleExpression) throws IOException, AutomationException
simpleExpression
- The simpleExpression (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isExpressionSimple() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExpressionParserByRef(IAnnotationExpressionEngine engine) throws IOException, AutomationException
engine
- A reference to a com.esri.arcgis.carto.IAnnotationExpressionEngine (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IAnnotationExpressionEngine getExpressionParser() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |