private void tryFitToContent() { if (SharedData.PageSetup.MainTablePreferences.ColumnsWidthsType != TableColumnWidthType.FitToContent) return; MainTable.AutoResizeTableColumns(); }