|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRepresentationRuleInit
Provides access to members that initialize a representation rule.
Use this piece of code to create and initilize a regular ArcGIS symbol to a RepresentationRule object.
Public Sub RepRuleInit()
Dim pRepresentationRules As IRepresentationRules
Dim pDiamond As ISimpleMarkerSymbol
Dim pRepresentationRule As IRepresentationRule
Dim pRepRuleInit As IRepresentationRuleInit
Dim lDiamondID As Long
'Create new RepresentationRules for this Representation Class
Set pRepresentationRules = New RepresentationRules
'Create new Simple Marker Symbol (diamond)
Set pDiamond = New SimpleMarkerSymbol
pDiamond.Style = esriSMSDiamond
pDiamond.size = 4
'Create a new RepresentationRule using a SimpleMarkerSymbol object that implements ISymbol interface and add to Collection
Set pRepresentationRule = New RepresentationRule
Set pRepRuleInit = pRepresentationRule
pRepRuleInit.InitWithSymbol pDiamond
'Initializes with standard ArcGIS symbols
lDiamondID = pRepresentationRules.Add(pRepresentationRule)
pRepresentationRules.Name(lDiamondID) = "diamond"
End Sub
Use IRepresentationRuleInit interface to convert a standard ArcGIS symbol to a basic symbol that can be used by a representation rule object to representation features in a representation class.
Method Summary | |
---|---|
void |
initWithSymbol(ISymbol symbol)
Initializes the representation rule with a symbol. |
Method Detail |
---|
void initWithSymbol(ISymbol symbol) throws IOException, AutomationException
Use this piece of code to create and initilize a regular ArcGIS symbol to a RepresentationRule object.
Public Sub RepRuleInit() Dim pRepresentationRules As IRepresentationRules Dim pDiamond As ISimpleMarkerSymbol Dim pRepresentationRule As IRepresentationRule Dim pRepRuleInit As IRepresentationRuleInit Dim lDiamondID As Long 'Create new RepresentationRules for this Representation Class Set pRepresentationRules = New RepresentationRules 'Create new Simple Marker Symbol (diamond) Set pDiamond = New SimpleMarkerSymbol pDiamond.Style = esriSMSDiamond pDiamond.size = 4 'Create a new RepresentationRule using a SimpleMarkerSymbol object that implements ISymbol interface and add to Collection Set pRepresentationRule = New RepresentationRule Set pRepRuleInit = pRepresentationRule pRepRuleInit.InitWithSymbol pDiamond 'Initializes with standard ArcGIS symbols lDiamondID = pRepresentationRules.Add(pRepresentationRule) pRepresentationRules.Name(lDiamondID) = "diamond" End Sub
symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
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 |