1

I can change the numbers of columns in the legend using arcpy.adjustColumnCount(column_count).

However, in my particular case I would like to know how many colums there are in the legend in the beginning and save that information as a variable, then change the number of columns to a specific value for a map and last change the number of colums back to the value of my variable.

Is there a possibility to do this?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Alex
  • 722
  • 1
  • 7
  • 16

1 Answers1

1

It does not appear this python method exists. You may however use ArcObjects ILegendItem.Columns Property to access this information.

artwork21
  • 35,114
  • 8
  • 66
  • 134
  • I always thought there would be a way that I once used. However, you might be right. Is there an easy way to implement an ArcObject method into a Python script w/o having any idea how ArcObjects works? – Alex Jan 08 '16 at 08:31
  • 1
    There are a number of Q/As on this site related to this topic, check out: http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python – artwork21 Jan 08 '16 at 12:58