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);
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.