When you create a table frame in layout with pro (not in code) you have an option to set the field width to Auto width.
Is there any option in the SDK to set this property?
Thanks
You can use the 'FittingStrategy' property of the CIMTableFrame to set the auto sizing behavior:
var theTable = LayoutElementFactory.Instance.CreateTableFrame(layout, EnvelopeBuilder.CreateEnvelope(llTab1, urTab1), mfElm, lyr, new string[] { "Label", "Description" }); var def = theTable.GetDefinition() as CIMTableFrame; def.FittingStrategy = TableFrameFittingStrategy.AdjustColumnsAndSize; def.FillingStrategy = TableFrameFillingStrategy.ShowAllRows; theTable.SetDefinition(def);
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.