112 instantiations of Padding
System.Web.Entity.Design (7)
System\Data\WebControls\Design\Util\WizardForm.cs (7)
136this._previousButton.Margin = new System.Windows.Forms.Padding(0); 145this._dummyLabel1.Margin = new System.Windows.Forms.Padding(0); 155this._nextButton.Margin = new System.Windows.Forms.Padding(0); 164this._dummyLabel2.Margin = new System.Windows.Forms.Padding(0); 175this._finishButton.Margin = new System.Windows.Forms.Padding(0); 184this._dummyLabel3.Margin = new System.Windows.Forms.Padding(0); 195this._cancelButton.Margin = new System.Windows.Forms.Padding(0);
System.Windows.Forms (94)
winforms\Managed\System\WinForms\GroupBox.cs (1)
176return new Padding(3);
winforms\Managed\System\WinForms\Label.cs (1)
388return new Padding(3, 0, 3, 0);
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
46internal static readonly Padding DefaultMargin = new Padding(3); 249Debug.Assert(value != GetPadding(element, new Padding(-7105)), 256Debug.Assert(GetPadding(element, new Padding(-7105)) == value, "Error detected setting Padding.");
winforms\Managed\System\WinForms\MDIWindowDialog.cs (2)
116this.okButton.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); 123this.cancelButton.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
winforms\Managed\System\WinForms\MenuStrip.cs (6)
81DpiHelper.LogicalToDeviceUnits(new Padding(2, 2, 0, 2), DeviceDpi) : 82new Padding(2, 2, 0, 2); 101DpiHelper.LogicalToDeviceUnits(new Padding(3, 2, 0, 2), DeviceDpi) : 102new Padding(3, 2, 0, 2); 105DpiHelper.LogicalToDeviceUnits(new Padding(6, 2, 0, 2), DeviceDpi) : 106new Padding(6, 2, 0, 2);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
466get { return new Padding(9); }
winforms\Managed\System\WinForms\Padding.cs (6)
29public static readonly Padding Empty = new Padding(0); 183return new Padding(p1.Left + p2.Left, p1.Top + p2.Top, p1.Right + p2.Right, p1.Bottom + p2.Bottom ); 195return new Padding(p1.Left - p2.Left, p1.Top - p2.Top, p1.Right - p2.Right, p1.Bottom - p2.Bottom ); 328return new Padding(values[0], values[1], values[2], values[3]); 397return new Padding(all); 400return new Padding(
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (3)
173this.lblMessage.Margin = new System.Windows.Forms.Padding(3, 30, 3, 0); 192this.detailsBtn.Margin = new System.Windows.Forms.Padding(12, 3, 29, 3); 251this.cancelBtn.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
1566owner.Padding = new Padding(value);
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
234return new Padding(0, 0, 0, 0);
winforms\Managed\System\WinForms\StatusStrip.cs (3)
91return new Padding(1, 0, 14, 0); 94return new Padding(14, 0, 1, 0); 101return new Padding(1, 3, 1, DefaultSize.Height);
winforms\Managed\System\WinForms\ToolStrip.cs (2)
100private static readonly Padding defaultPadding = new Padding(0, 0, 1, 0); 101private static readonly Padding defaultGripMargin = new Padding(2);
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
38private static readonly Padding dropDownPadding = new Padding(2); 39private static readonly Padding padding = new Padding(1, 0, 1, 0);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
60private static readonly Padding defaultPadding = new Padding(1, 2, 1, 2);
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
236private static Padding dropDownArrowPadding = new Padding(DROP_DOWN_ARROW_PADDING);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (7)
26private static readonly Padding ImagePadding = new Padding(2); 27private static readonly Padding TextPadding = new Padding(8,1,9,1); 28private static readonly Padding CheckPadding = new Padding(5,2,2,2); 29private static readonly Padding ArrowPadding = new Padding(0,0,8,0); 127return new Padding(1,2,padding,2); 129return new Padding(padding,2,1,2); 142rect = LayoutUtils.InflateRect(rect, new Padding(0, this.Padding.Top, 0, this.Padding.Bottom));
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
27private static readonly Padding defaultPadding = new Padding(2);
winforms\Managed\System\WinForms\ToolStripItem.cs (2)
69private static readonly Padding defaultMargin = new Padding(0, 1, 0, 2); 70private static readonly Padding defaultStatusStripMargin = new Padding(0, 2, 0, 0);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
61private static readonly Padding defaultPadding = new Padding(4, 0, 4, 0); 62private static readonly Padding defaultDropDownPadding = new Padding(0, 1, 0, 1);
winforms\Managed\System\WinForms\ToolStripPanel.cs (2)
34private static readonly Padding rowMargin = new Padding(3,0,0,0); 72internal static readonly Padding DragMargin = new Padding(10);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (5)
40private Padding scaledDropDownMenuItemPaintPadding = new Padding(DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE + 1, 0, DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE, 0); 265Padding deflatePadding = item.RightToLeft == RightToLeft.Yes ? new Padding(0, 1, 1, 1) : new Padding(1, 1, 0, 1); 1413scaledDropDownMenuItemPaintPadding = new Padding(scaledSize + 1, 0, scaledSize, 0); 1433scaledDropDownMenuItemPaintPadding = new Padding(scaledSize + 1, 0, scaledSize, 0);
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (2)
22private static readonly Padding defaultMargin = new Padding(1, 2, 1, 1); 23private static readonly Padding defaultStatusStripMargin = new Padding(1, 3, 1, 3);
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (1)
30private static readonly Padding defaultMargin = new Padding(0, 3, 0, 2);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
33private static readonly Padding defaultMargin = new Padding(1, 0, 1, 0); 34private static readonly Padding defaultDropDownMargin = new Padding(1);
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (15)
228this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(12); 243this.pictureBoxPublisher.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); 251this.pictureBoxMachineAccess.Margin = new System.Windows.Forms.Padding(0, 10, 3, 0); 259this.pictureBoxInstallation.Margin = new System.Windows.Forms.Padding(0, 10, 3, 0); 267this.pictureBoxLocation.Margin = new System.Windows.Forms.Padding(0, 10, 3, 0); 275this.lblPublisher.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); 281this.lblPublisherContent.Margin = new System.Windows.Forms.Padding(3, 0, 0, 10); 287this.lblMachineAccess.Margin = new System.Windows.Forms.Padding(3, 10, 0, 0); 293this.lblMachineAccessContent.Margin = new System.Windows.Forms.Padding(3, 0, 0, 10); 299this.lblInstallation.Margin = new System.Windows.Forms.Padding(3, 10, 0, 0); 305this.lblInstallationContent.Margin = new System.Windows.Forms.Padding(3, 0, 0, 10); 311this.lblLocation.Margin = new System.Windows.Forms.Padding(3, 10, 0, 0); 317this.lblLocationContent.Margin = new System.Windows.Forms.Padding(3, 0, 0, 10); 325this.btnClose.Margin = new System.Windows.Forms.Padding(0, 10, 0, 0); 328this.btnClose.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (20)
193this.tableLayoutPanelOuter.Margin = new System.Windows.Forms.Padding(0, 0, 0, 12); 209this.warningTextTableLayoutPanel.Margin = new System.Windows.Forms.Padding(12, 6, 0, 0); 216this.pictureBoxWarning.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); 223this.linkLblMoreInformation.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); 235this.tableLayoutPanelQuestion.Margin = new System.Windows.Forms.Padding(0); 242this.lblQuestion.Margin = new System.Windows.Forms.Padding(12, 12, 12, 0); 248this.pictureBoxQuestion.Margin = new System.Windows.Forms.Padding(0); 259this.tableLayoutPanelButtons.Margin = new System.Windows.Forms.Padding(0, 6, 12, 12); 267this.btnInstall.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); 270this.btnInstall.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0); 277this.btnCancel.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); 280this.btnCancel.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0); 293this.tableLayoutPanelInfo.Margin = new System.Windows.Forms.Padding(30, 22, 12, 3); 305this.lblName.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); 311this.lblFrom.Margin = new System.Windows.Forms.Padding(0, 8, 3, 0); 317this.lblPublisher.Margin = new System.Windows.Forms.Padding(0, 8, 3, 0); 324this.linkLblName.Margin = new System.Windows.Forms.Padding(3, 0, 3, 8); 334this.linkLblFromUrl.Margin = new System.Windows.Forms.Padding(3, 0, 3, 8); 345this.linkLblPublisher.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); 355this.lineLabel.Margin = new System.Windows.Forms.Padding(0);
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
837return new Padding(margins.cxLeftWidth, margins.cyTopHeight, margins.cxRightWidth, margins.cyBottomHeight);
System.Workflow.ComponentModel (9)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (9)
162this.themeNameLabel.Margin = new System.Windows.Forms.Padding(0, 0, 3, 3); 168this.themeLocationLabel.Margin = new System.Windows.Forms.Padding(0, 3, 3, 0); 175this.themeNameTextBox.Margin = new System.Windows.Forms.Padding(3, 0, 0, 3); 196this.themeLocationButton.Margin = new System.Windows.Forms.Padding(3, 3, 0, 0); 202this.themeLocationTextBox.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0); 214this.okButton.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); 221this.cancelButton.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); 231this.themePanel.Margin = new System.Windows.Forms.Padding(4); 266this.previewButton.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
System.WorkflowServices (2)
System\Workflow\Activities\Design\OperationPickerDialog.designer.cs (2)
68this.toolStripLabel1.Padding = new System.Windows.Forms.Padding(15, 0, 0, 0); 116this.operationsPanel.Padding = new System.Windows.Forms.Padding(3);
278 references to Padding
System.Windows.Forms (278)
winforms\Managed\System\WinForms\ArrangedElement.cs (6)
54protected virtual Padding DefaultMargin { 55get { return Padding.Empty; } 58protected virtual Padding DefaultPadding { 59get { return Padding.Empty; } 73public Padding Margin { 84public virtual Padding Padding {
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
956internal Padding padding; 1507internal static LayoutOptions CommonLayout(Rectangle clientRectangle, Padding padding, bool isDefault, Font font, string text, bool enabled, ContentAlignment textAlign, RightToLeft rtl)
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (1)
287internal static LayoutOptions PaintFlatLayout(Graphics g, bool up, bool check, int borderSize, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (1)
159internal static LayoutOptions PaintPopupLayout(Graphics g, bool up, int paintedBorder, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (1)
117internal static LayoutOptions PaintPopupLayout(Graphics g, bool show3D, int checkSize, Rectangle clientRectangle, Padding padding,
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
486public new Padding Padding {
winforms\Managed\System\WinForms\ComboBox.cs (1)
889public new Padding Padding {
winforms\Managed\System\WinForms\Control.cs (7)
2189protected virtual Padding DefaultMargin { 2204protected virtual Padding DefaultPadding { 2205get { return Padding.Empty; } 3260public Padding Margin 4770public Padding Padding { 11502Padding padding = Padding; 11503Padding margins = Margin;
winforms\Managed\System\WinForms\DataGridView.cs (1)
3861public new Padding Padding
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
741if (cellStyle.Padding != Padding.Empty) 962Padding.Empty, 991Padding.Empty,
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (1)
245!defaultCellStyle.Padding.Equals(Padding.Empty));
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
2530if (cellStyle != null && cellStyle.Padding != Padding.Empty) 2534else if (rowStyle != null && rowStyle.Padding != Padding.Empty) 2538else if (this.DataGridView.RowsDefaultCellStyle.Padding != Padding.Empty && 2539(rowIndex % 2 == 0 || this.DataGridView.AlternatingRowsDefaultCellStyle.Padding == Padding.Empty)) 2543else if (rowIndex % 2 == 1 && this.DataGridView.AlternatingRowsDefaultCellStyle.Padding != Padding.Empty) 2547else if (columnStyle != null && columnStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (5)
421public Padding Padding 448internal Padding PaddingInternal 654if (dataGridViewCellStyle.Padding != Padding.Empty) 800return this.Padding != Padding.Empty; 907if (this.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (4)
1224if (cellStyle.Padding != Padding.Empty) 1475Padding.Empty, 1523Padding.Empty, 1567Padding.Empty,
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (1)
350!defaultCellStyle.Padding.Equals(Padding.Empty));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (2)
326!defaultCellStyle.Padding.Equals(Padding.Empty)); 746if (columnStyle != null && columnStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (5)
497if (cellStyle != null && cellStyle.Padding != Padding.Empty) 501else if (columnHeadersStyle.Padding != Padding.Empty) 804if (cellStyle.Padding != Padding.Empty) 806if (cellStyle.Padding != Padding.Empty) 900if (cellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2174if (cellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
826if (cellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (1)
342!defaultCellStyle.Padding.Equals(Padding.Empty));
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
1026if (cellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
2999if (cellStyle != null && cellStyle.Padding != Padding.Empty) 3003else if (columnHeadersStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewRow.cs (6)
855if (cellStyle != null && cellStyle.Padding != Padding.Empty) 859else if (rowHeadersStyle.Padding != Padding.Empty) 1100if (rowStyle != null && rowStyle.Padding != Padding.Empty) 1104else if (rowsDefaultCellStyle.Padding != Padding.Empty && 1105(rowIndex % 2 == 0 || alternatingRowsDefaultCellStyle.Padding == Padding.Empty)) 1109else if (rowIndex % 2 == 1 && alternatingRowsDefaultCellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (4)
623if (cellStyle != null && cellStyle.Padding != Padding.Empty) 627else if (rowHeadersStyle.Padding != Padding.Empty) 795if (cellStyle.Padding != Padding.Empty) 873if (cellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
722if (cellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (1)
318if (cellStyle.Padding != Padding.Empty)
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
850public new Padding Padding {
winforms\Managed\System\WinForms\DomainUpDown.cs (1)
111public new Padding Padding {
winforms\Managed\System\WinForms\Form.cs (1)
1653public new Padding Margin {
winforms\Managed\System\WinForms\GroupBox.cs (2)
174protected override Padding DefaultPadding { 219Padding padding = Padding;
winforms\Managed\System\WinForms\Label.cs (1)
386protected override Padding DefaultMargin {
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (8)
46internal static readonly Padding DefaultMargin = new Padding(3); 104internal static Padding GetMargin(IArrangedElement element) { 106Padding padding = element.Properties.GetPadding(_marginProperty, out found); 143internal static Padding GetPadding(IArrangedElement element, Padding defaultPadding) { 145Padding padding = element.Properties.GetPadding(_paddingProperty, out found); 191internal static void SetMargin(IArrangedElement element, Padding value) { 248internal static void SetPadding(IArrangedElement element, Padding value) {
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (4)
513Padding containerPadding = Padding.Empty; 520containerPadding = CommonProperties.GetPadding(container, Padding.Empty); 830Padding margin = CommonProperties.GetMargin(element);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (2)
576public virtual Padding Margin { 624public override Padding Margin {
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (6)
137public static Padding ClampNegativePaddingToZero(Padding padding) { 323public static Rectangle InflateRect(Rectangle rect, Padding padding) { 331public static Rectangle DeflateRect(Rectangle rect, Padding padding) { 354public static Padding FlipPadding(Padding padding) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (3)
740Padding margin = CommonProperties.GetMargin(element); 845Padding margin = CommonProperties.GetMargin(element); 1219Padding elementMargin = CommonProperties.GetMargin(element);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
453public new Padding Padding {
winforms\Managed\System\WinForms\ListBox.cs (1)
1247public new Padding Padding {
winforms\Managed\System\WinForms\ListView.cs (1)
2124public new Padding Padding {
winforms\Managed\System\WinForms\MDIControlStrip.cs (2)
63item.Padding = Padding.Empty; 77system.Padding = Padding.Empty;
winforms\Managed\System\WinForms\MenuStrip.cs (2)
76protected override Padding DefaultGripMargin { 95protected override Padding DefaultPadding {
winforms\Managed\System\WinForms\MonthCalendar.cs (2)
465protected override Padding DefaultMargin { 717public new Padding Padding {
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
269public new Padding Padding {
winforms\Managed\System\WinForms\Padding.cs (32)
29public static readonly Padding Empty = new Padding(0); 156public static Padding Add(Padding p1, Padding p2) { 161public static Padding Subtract(Padding p1, Padding p2) { 168if(other is Padding) { 169return ((Padding)other) == this; 179/// Performs vector addition of two <see cref='System.Windows.Forms.Padding'/> objects. 182public static Padding operator +(Padding p1, Padding p2) { 194public static Padding operator -(Padding p1, Padding p2) { 200/// Tests whether two <see cref='System.Windows.Forms.Padding'/> objects 203public static bool operator ==(Padding p1, Padding p2) { 210/// Tests whether two <see cref='System.Windows.Forms.Padding'/> objects are different. 213public static bool operator !=(Padding p1, Padding p2) { 347if (value is Padding) { 349Padding padding = (Padding)value; 368Padding padding = (Padding) value; 372typeof(Padding).GetConstructor(new Type[] {typeof(int)}), 377typeof(Padding).GetConstructor(new Type[] {typeof(int), typeof(int), typeof(int), typeof(int)}), 393Padding original = (Padding) context.PropertyDescriptor.GetValue(context.Instance); 413PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(Padding), attributes);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (2)
408new public Padding Margin { 479new public Padding Padding {
winforms\Managed\System\WinForms\ProgressBar.cs (1)
477public new Padding Padding {
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
240Padding toolStripPadding = toolStrip.Padding; 1048public new Padding Padding {
winforms\Managed\System\WinForms\PropertyStore.cs (6)
88public Padding GetPadding(int key) { 95public Padding GetPadding(int key, out bool found) { 114return Padding.Empty; 638public void SetPadding(int key, Padding value) { 929public Padding Padding; 930public PaddingWrapper(Padding padding){
winforms\Managed\System\WinForms\ScrollableControl.cs (4)
1595Padding padding = owner.Padding; 1625Padding padding = owner.Padding; 1655Padding padding = owner.Padding; 1685Padding padding = owner.Padding;
winforms\Managed\System\WinForms\ScrollBar.cs (2)
207protected override Padding DefaultMargin { 209return Padding.Empty;
winforms\Managed\System\WinForms\SplitContainer.cs (1)
649public new Padding Padding {
winforms\Managed\System\WinForms\SplitterPanel.cs (1)
232protected override Padding DefaultMargin {
winforms\Managed\System\WinForms\StatusStrip.cs (2)
87protected override Padding DefaultPadding { 144public new Padding Padding {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
891public new Padding Padding {
winforms\Managed\System\WinForms\ToolStrip.cs (17)
100private static readonly Padding defaultPadding = new Padding(0, 0, 1, 0); 101private static readonly Padding defaultGripMargin = new Padding(2); 102private Padding scaledDefaultPadding = defaultPadding; 103private Padding scaledDefaultGripMargin = defaultGripMargin; 659protected override Padding DefaultPadding { 667protected override Padding DefaultMargin { 668get { return Padding.Empty; } 677protected virtual Padding DefaultGripMargin { 976public Padding GripMargin { 2457Padding padding = Padding; 2459Padding newPadding = Padding; 2493Padding itemMargin = item.Margin; 2513Padding overflowItemMargin = overflowItem.Margin; 2523Padding gripMargin = toolStrip.GripMargin; 2549Padding itemMargin = item.Margin; 2568Padding overflowItemMargin = overflowItem.Margin; 2577Padding gripMargin = toolStrip.GripMargin;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (5)
38private static readonly Padding dropDownPadding = new Padding(2); 39private static readonly Padding padding = new Padding(1, 0, 1, 0); 41private Padding scaledDropDownPadding = dropDownPadding; 42private Padding scaledPadding = padding; 217protected internal override Padding DefaultMargin {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (4)
60private static readonly Padding defaultPadding = new Padding(1, 2, 1, 2); 61private Padding scaledDefaultPadding = defaultPadding; 363protected override Padding DefaultPadding { 531public new Padding GripMargin{
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
236private static Padding dropDownArrowPadding = new Padding(DROP_DOWN_ARROW_PADDING); 237private Padding scaledDropDownArrowPadding = dropDownArrowPadding;
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (9)
26private static readonly Padding ImagePadding = new Padding(2); 27private static readonly Padding TextPadding = new Padding(8,1,9,1); 28private static readonly Padding CheckPadding = new Padding(5,2,2,2); 29private static readonly Padding ArrowPadding = new Padding(0,0,8,0); 64private Padding scaledImagePadding = ImagePadding; 65private Padding scaledTextPadding = TextPadding; 66private Padding scaledCheckPadding = CheckPadding; 67private Padding scaledArrowPadding = ArrowPadding; 118protected override Padding DefaultPadding {
winforms\Managed\System\WinForms\ToolStripGrip.cs (3)
27private static readonly Padding defaultPadding = new Padding(2); 30private Padding scaledDefaultPadding = defaultPadding; 51protected internal override Padding DefaultMargin {
winforms\Managed\System\WinForms\ToolStripItem.cs (9)
69private static readonly Padding defaultMargin = new Padding(0, 1, 0, 2); 70private static readonly Padding defaultStatusStripMargin = new Padding(0, 2, 0, 0); 71private Padding scaledDefaultMargin = defaultMargin; 72private Padding scaledDefaultStatusStripMargin = defaultStatusStripMargin; 705protected internal virtual Padding DefaultMargin { 720protected virtual Padding DefaultPadding { 722return Padding.Empty; 1518public Padding Margin { 1869public virtual Padding Padding {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (7)
61private static readonly Padding defaultPadding = new Padding(4, 0, 4, 0); 62private static readonly Padding defaultDropDownPadding = new Padding(0, 1, 0, 1); 64private Padding scaledDefaultPadding = defaultPadding; 65private Padding scaledDefaultDropDownPadding = defaultDropDownPadding; 205protected internal override Padding DefaultMargin { 207return Padding.Empty; 211protected override Padding DefaultPadding {
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (2)
59protected internal override Padding DefaultMargin { 61return Padding.Empty;
winforms\Managed\System\WinForms\ToolStripPanel.cs (8)
34private static readonly Padding rowMargin = new Padding(3,0,0,0); 35private Padding scaledRowMargin = rowMargin; 72internal static readonly Padding DragMargin = new Padding(10); 173protected override Padding DefaultPadding { 174get { return Padding.Empty; } 176protected override Padding DefaultMargin { 177get { return Padding.Empty; } 180public Padding RowMargin {
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
102this.Margin = Padding.Empty;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (23)
150protected virtual Padding DefaultMargin { 155Padding padding = ToolStripPanel.RowMargin; 174protected virtual Padding DefaultPadding { 175get { return Padding.Empty; } 210public Padding Margin { 216public virtual Padding Padding { 1013Padding cellMargin = lastCellOnRow.Margin; 1083Padding cellMargin = cell.Margin; 1138Padding cellMargin; 1250Padding nextCellMargin = nextCell.Margin; 1328Padding nextCellMargin = nextCell.Margin; 1364Padding lastCellMargin = lastCell.Margin; 1382Padding newCellMargin = newCell.Margin; 1410Padding cellMargin = cell.Margin; 1524Padding cellMargin = lastCellOnRow.Margin; 1597Padding cellMargin = cell.Margin; 1653Padding cellMargin; 1760Padding cellMargin = lastCellOnRow.Margin; 1859Padding nextCellMargin = nextCell.Margin; 1896Padding lastCellMargin = lastCell.Margin; 1916Padding newCellMargin = newCell.Margin; 1936Padding cellMargin = cell.Margin; 1964Padding nextCellMargin = nextCell.Margin;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
40private Padding scaledDropDownMenuItemPaintPadding = new Padding(DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE + 1, 0, DROP_DOWN_MENU_ITEM_PAINT_PADDING_SIZE, 0); 265Padding deflatePadding = item.RightToLeft == RightToLeft.Yes ? new Padding(0, 1, 1, 1) : new Padding(1, 1, 0, 1);
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (5)
22private static readonly Padding defaultMargin = new Padding(1, 2, 1, 1); 23private static readonly Padding defaultStatusStripMargin = new Padding(1, 3, 1, 3); 24private Padding scaledDefaultMargin = defaultMargin; 25private Padding scaledDefaultStatusStripMargin = defaultStatusStripMargin; 102protected internal override Padding DefaultMargin {
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (4)
55protected internal override Padding DefaultMargin { 57return Padding.Empty; 60protected override Padding DefaultPadding { 62return Padding.Empty;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (2)
99protected internal override Padding DefaultMargin { 101return Padding.Empty;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
686public override Padding Padding {
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (3)
320Padding itemMargin = item.Margin; 454Padding itemMargin = item.Margin; 599Padding itemMargin = item.Margin;
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (3)
30private static readonly Padding defaultMargin = new Padding(0, 3, 0, 2); 31private Padding scaledDefaultMargin = defaultMargin; 163protected internal override Padding DefaultMargin {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (5)
33private static readonly Padding defaultMargin = new Padding(1, 0, 1, 0); 34private static readonly Padding defaultDropDownMargin = new Padding(1); 35private Padding scaledDefaultMargin = defaultMargin; 36private Padding scaledDefaultDropDownMargin = defaultDropDownMargin; 92protected internal override Padding DefaultMargin {
winforms\Managed\System\WinForms\TrackBar.cs (1)
480public new Padding Padding {
winforms\Managed\System\WinForms\TreeView.cs (1)
967public new Padding Padding {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
819public Padding GetMargins(IDeviceContext dc, MarginProperty prop) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
530public new Padding Padding {