Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am still new to ArcEngine 10, I currently am able to create a feature layer that is associated with a feature class. Its a polygon layer. So I can create polygon, give it attritbute table and put it on a layer using UNIQUEVALUERENDERER.

My question is, is there a tool bar control, or any way I can MOVE or RESIZE my polygon easily. I current use "esriControls.ControlsSelectFeaturesTool" to select the tools. Is there an easy way to do this?

Thanks and Regards

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

You can use IFeatureSelection to get the selected Feature(s).

Then cast IFeature.Shape to ITransform2D, and call Scale, Move, etc.

Finally, call IFeature.Store to save he changed geometry.

share|improve this answer
    
So if i want to do it that way, it is best I create a custom toolbar control to do this? Have the features I want move selected and use this NEW tool to Scale and move it? –  Kev84 Mar 21 '11 at 20:39
1  
You can also just use the toolbar control "esriControls.ControlsEditingVertexMoveToCommand" –  Kev84 Mar 21 '11 at 22:08
    
Yes, if you want to just move individual vertices, that would be the way to go. –  Kirk Kuykendall Mar 23 '11 at 14:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.