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);
サインインすると、投稿したり、更新をフォローしたりできます。初めての方ですか?無料アカウントを登録しましょう。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.