if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane) { var currentZoomLevel = tablePane.ZoomLevel; var newZoomLevel = currentZoomLevel + 50; tablePane.SetZoomLevel(newZoomLevel); }
if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane) { var mapMember = tablePane.MapMember; var oid = tablePane.ActiveObjectID; if (oid.HasValue && oid.Value != -1 && mapMember != null) { var activeField = tablePane.ActiveColumn; return QueuedTask.Run<object>(() => { // TODO: Use core objects to retrieve record and get value return null; }); } }
if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane) { // move to first row tablePane.BringIntoView(0); // move to sixth row tablePane.BringIntoView(5); } }
// find all the table panes (table panes hosting map data) var tablePanes = FrameworkApplication.Panes.OfType<ITablePane>(); var tablePane = tablePanes.FirstOrDefault(p => (p as ITablePaneEx)?.Caption == "oldcCaption"); var tablePaneEx = tablePane as ITablePaneEx; if (tablePaneEx != null) tablePaneEx.Caption = "newCaption"; // find all the external table panes (table panes hosting external data) var externalPanes = FrameworkApplication.Panes.OfType<IExternalTablePane>(); var externalTablePane = externalPanes.FirstOrDefault(p => p.Caption == "oldcCaption"); if (externalTablePane != null) externalTablePane.Caption = "newCaption";
TableView tv = null; // find all the table panes (table panes hosting map data) var tablePanes = FrameworkApplication.Panes.OfType<ITablePane>(); var tablePane = tablePanes.FirstOrDefault(p => (p as ITablePaneEx)?.Caption == "caption"); var tablePaneEx = tablePane as ITablePaneEx; if (tablePaneEx != null) tv = tablePaneEx.TableView; // if it's not found, maybe it's an external table pane if (tv == null) { // find all the external table panes (table panes hosting external data) var externalPanes = FrameworkApplication.Panes.OfType<IExternalTablePane>(); var externalTablePane = externalPanes.FirstOrDefault(p => p.Caption == "caption"); if (externalTablePane != null) tv = externalTablePane.TableView; }
Target Platforms: Windows 11, Windows 10