254 references to RightToLeftInternal
System.Windows.Forms (254)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (19)
506if (RightToLeftInternal) 522if (RightToLeftInternal) 539if ((!RightToLeftInternal && AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None) 540|| (RightToLeftInternal && AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None)) 543if (RightToLeftInternal) 578LeftInternal = RightToLeftInternal ? DataGridViewAdvancedCellBorderStyle.Outset : DataGridViewAdvancedCellBorderStyle.OutsetDouble, 579RightInternal = RightToLeftInternal ? DataGridViewAdvancedCellBorderStyle.OutsetDouble : DataGridViewAdvancedCellBorderStyle.Outset, 588LeftInternal = RightToLeftInternal ? DataGridViewAdvancedCellBorderStyle.Inset : DataGridViewAdvancedCellBorderStyle.InsetDouble, 589RightInternal = RightToLeftInternal ? DataGridViewAdvancedCellBorderStyle.InsetDouble : DataGridViewAdvancedCellBorderStyle.Inset, 598if ((!RightToLeftInternal && AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None) 599|| (RightToLeftInternal && AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None)) 602if (RightToLeftInternal) 1160if (RightToLeftInternal) 1266if (RightToLeftInternal) 2138if (RightToLeftInternal) 2713if (!RightToLeftInternal) 2723if (!RightToLeftInternal) 2731if (!RightToLeftInternal) 2768if (RightToLeftInternal)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (148)
107if (RightToLeftInternal) 132if (RightToLeftInternal) 170if (RightToLeftInternal) 192if (RightToLeftInternal) 221if (RightToLeftInternal) 246if (RightToLeftInternal) 273if (RightToLeftInternal) 2461if (RightToLeftInternal) 2471if (!RightToLeftInternal) 2528_keyboardResizeStep = LogicalToDeviceUnits(RightToLeftInternal ? -1 : 1); 2530x += RightToLeftInternal ? -Columns[columnIndex].Width : Columns[columnIndex].Width; 2539if (RightToLeftInternal) 2742if (RightToLeftInternal) 2973if (RightToLeftInternal) 3005if (RightToLeftInternal) 3652if ((RightToLeftInternal && e.X < xColumnLeftEdge - wColumn / 2) 3653|| (!RightToLeftInternal && e.X > xColumnLeftEdge + wColumn / 2)) 4400if (RightToLeftInternal) 4420if (RightToLeftInternal) 4447if (!RightToLeftInternal) 4913if (RightToLeftInternal) 4920columnX = RightToLeftInternal ? _layout.RowHeaders.Left - 1 : _layout.RowHeaders.Left; 5492if (RightToLeftInternal) 5501if (!RightToLeftInternal) 5638if (RightToLeftInternal) 5648if (!RightToLeftInternal) 5655offsetFromCenter = RightToLeftInternal ? InsertionBarWidth / 2 - 1 : InsertionBarWidth / 2 + 1; 5658rectInsertionBar.X = RightToLeftInternal 5758if (RightToLeftInternal) 6108if (RightToLeftInternal) 6291if (RightToLeftInternal) 6821if (!RightToLeftInternal) 7076if (RightToLeftInternal) 7179if (RightToLeftInternal) 7292if (RightToLeftInternal) 7465if (RightToLeftInternal) 7586if (RightToLeftInternal) 7909if (RightToLeftInternal) 8024if (RightToLeftInternal) 8211cx = RightToLeftInternal ? data.Right : data.X; 8216if ((RightToLeftInternal && cx < data.X) || (!RightToLeftInternal && cx > data.Right)) 8227if (RightToLeftInternal) 8247if ((RightToLeftInternal && cx < data.X) || (!RightToLeftInternal && cx > data.Right)) 8258if (RightToLeftInternal) 8269if (RightToLeftInternal) 8296&& ((!RightToLeftInternal && cx + viewedColumnWidth > data.Right) 8297|| (RightToLeftInternal && cx - viewedColumnWidth < data.X)) 8298? RightToLeftInternal ? cx - data.X : data.Right - cx 8301Rectangle columnRect = RightToLeftInternal 8322Debug.Assert(RightToLeftInternal || (x >= data.X - 1 && x < data.Right), "x must be inside the horizontal bounds of this.layout.Data"); 8323Debug.Assert(!RightToLeftInternal || (x >= data.X && x <= data.Right), "x must be inside the horizontal bounds of this.layout.Data"); 8325if (!RightToLeftInternal && x == data.X - 1) 8329else if (RightToLeftInternal && x == data.Right) 8334int cx = RightToLeftInternal ? data.Right - 1 : data.X; 8339&& ((!RightToLeftInternal && cx < data.Right) || (RightToLeftInternal && cx >= data.X))) 8341if (RightToLeftInternal) 8350if (!RightToLeftInternal && cx > x) 8355else if (RightToLeftInternal && cx < x) 8366if (RightToLeftInternal) 8380&& ((!RightToLeftInternal && cx < data.Right) || (RightToLeftInternal && cx >= data.X))) 8383if (RightToLeftInternal) 8392if (!RightToLeftInternal && cx > x) 8397else if (RightToLeftInternal && cx < x) 8453int x = RightToLeftInternal ? _layout.Data.Right - 1 : _layout.Data.X; 8463if (RightToLeftInternal) 8477if (RightToLeftInternal) 8501if (RightToLeftInternal) 8523if (RightToLeftInternal) 8593hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.Left, mouseY); 8622hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8640mouseX = RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1; 8644hti = HitTest(RightToLeftInternal ? rectScrollingArea.Right : rectScrollingArea.Left, mouseY); 8657mouseX = RightToLeftInternal ? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1; 8713if ((!RightToLeftInternal && mouseX < rectScrollingArea.Left) || (RightToLeftInternal && mouseX > rectScrollingArea.Right)) 8725if (RightToLeftInternal) 8745Debug.Assert((!RightToLeftInternal && mouseX > rectScrollingArea.Right) || (RightToLeftInternal && mouseX < rectScrollingArea.Left)); 8779if (RightToLeftInternal) 8864if ((!RightToLeftInternal && mouseX < rectScrollingArea.Left) || (RightToLeftInternal && mouseX > rectScrollingArea.Right)) 8876if (RightToLeftInternal) 8890if (!RightToLeftInternal && mouseX < _layout.Data.Left) 8895else if (RightToLeftInternal && mouseX > _layout.Data.Right) 8902else if ((!RightToLeftInternal && mouseX > rectScrollingArea.Right) || (RightToLeftInternal && mouseX < rectScrollingArea.Left)) 8932if (RightToLeftInternal) 8946mouseX = RightToLeftInternal ? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1; 8954mouseX = RightToLeftInternal ? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1; 9093if (!RightToLeftInternal) 9306hti._colStart = RightToLeftInternal ? _layout.TopLeftHeader.Right - 1 : _layout.TopLeftHeader.Left; 9309if ((!RightToLeftInternal && _layout.TopLeftHeader.Right - x < ColumnSizingHotZone) 9310|| (RightToLeftInternal && x - _layout.TopLeftHeader.Left < ColumnSizingHotZone)) 9316hti._mouseBarOffset = RightToLeftInternal 9350if ((!RightToLeftInternal && xColumnLeftEdge + columnWidth - x < ColumnSizingHotZone) 9351|| (RightToLeftInternal && x - xColumnLeftEdge + columnWidth < ColumnSizingHotZone)) 9354hti._mouseBarOffset = RightToLeftInternal 9365else if ((!RightToLeftInternal && x - xColumnLeftEdge < ColumnSizingHotZone) 9366|| (RightToLeftInternal && xColumnLeftEdge - x < ColumnSizingHotZone)) 9377hti._mouseBarOffset = RightToLeftInternal ? xColumnLeftEdge - x + 1 : xColumnLeftEdge - x - 1; 9390hti._mouseBarOffset = RightToLeftInternal ? xColumnLeftEdge - x : xColumnLeftEdge - x - 1; 9422hti._colStart = RightToLeftInternal ? _layout.RowHeaders.Right - 1 : _layout.RowHeaders.Left; 9462else if ((!RightToLeftInternal && _layout.RowHeaders.Right - x < ColumnSizingHotZone) 9463|| (RightToLeftInternal && x - _layout.RowHeaders.Left < ColumnSizingHotZone)) 9469hti._mouseBarOffset = RightToLeftInternal 9494if ((!RightToLeftInternal && xColumnLeftEdge + columnWidth - x < ColumnSizingHotZone) 9495|| (RightToLeftInternal && x - xColumnLeftEdge + columnWidth < ColumnSizingHotZone)) 9497hti._mouseBarOffset = RightToLeftInternal 9511else if ((!RightToLeftInternal && x - xColumnLeftEdge < ColumnSizingHotZone) 9512|| (RightToLeftInternal && xColumnLeftEdge - x < ColumnSizingHotZone)) 9525hti._mouseBarOffset = RightToLeftInternal ? xColumnLeftEdge - x + 1 : xColumnLeftEdge - x - 1; 9541hti._mouseBarOffset = RightToLeftInternal ? xColumnLeftEdge - x : xColumnLeftEdge - x - 1; 9548else if ((!RightToLeftInternal && x - xColumnLeftEdge < ColumnSizingHotZone) 9549|| (RightToLeftInternal && xColumnLeftEdge - x < ColumnSizingHotZone)) 9558hti._mouseBarOffset = RightToLeftInternal ? xColumnLeftEdge - x : xColumnLeftEdge - x - 1; 9642hti = HitTest(ptMouse.X + (RightToLeftInternal ? 1 : -1) * (xOffset + normOffset), mouseY); 9652ptMouse.X + (RightToLeftInternal ? 1 : -1) * (xOffset + normOffset), 9654: HitTest(ptMouse.X + (RightToLeftInternal ? 1 : -1) * (xOffset + normOffset), mouseY); 10153bool rightToLeftInternal = RightToLeftInternal; 14501if (RightToLeftInternal) 14620if (RightToLeftInternal) 15799if (RightToLeftInternal) 15883if (RightToLeftInternal) 15967if (RightToLeftInternal) 16119if (RightToLeftInternal) 16353if (RightToLeftInternal) 16431if (RightToLeftInternal) 16744if (!RightToLeftInternal) 19235if (!RightToLeftInternal) 19244if (!RightToLeftInternal) 19254if (!RightToLeftInternal) 19361cellBounds.X = RightToLeftInternal ? bandBounds.Right - cx - cellBounds.Width : bandBounds.X + cx; 19403if (!RightToLeftInternal) 19417if (!RightToLeftInternal) 19439cellBounds.X = RightToLeftInternal 19815if (RightToLeftInternal) 19827if (!RightToLeftInternal) 19865if (!RightToLeftInternal) 22058protected bool ProcessLeftKey(Keys keyData) => RightToLeftInternal 23435protected bool ProcessRightKey(Keys keyData) => RightToLeftInternal 26053if (RightToLeftInternal) 29006if (!RightToLeftInternal) 29081if (!RightToLeftInternal) 29180if (RightToLeftInternal)
System\Windows\Forms\Controls\DataGridView\DataGridViewAdvancedBorderStyle.cs (2)
154if ((_owner is not null && _owner.RightToLeftInternal) && 210if ((_owner is not null && !_owner.RightToLeftInternal) &&
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
301TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 695if (DataGridView.RightToLeftInternal) 985DataGridView.RightToLeftInternal,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
778if (DataGridView is not null && DataGridView.RightToLeftInternal) 799if (DataGridView.RightToLeftInternal) 862if (DataGridView is not null && DataGridView.RightToLeftInternal) 1019Rectangle bmpRect = new(DataGridView!.RightToLeftInternal ? 2763DataGridView.RightToLeftInternal, 3164DataGridView.RightToLeftInternal ? bounds.X : bounds.Right - dividerThickness, 3169if (DataGridView.RightToLeftInternal)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
1130if (DataGridView.RightToLeftInternal) 1212if ((!DataGridView.RightToLeftInternal && (cellStyle.Alignment & AnyRight) != 0) || 1213(DataGridView.RightToLeftInternal && (cellStyle.Alignment & AnyLeft) != 0))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (8)
500TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 779if (DataGridView.RightToLeftInternal) 826if (DataGridView.RightToLeftInternal) 852if (DataGridView.RightToLeftInternal) 879if (DataGridView.RightToLeftInternal) 929DataGridView.RightToLeftInternal, 940if (DataGridView.RightToLeftInternal) 966TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (14)
552if (DataGridView.RightToLeftInternal) 1176TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 1931PaintPadding(g, valBounds, cellStyle, brush!, DataGridView.RightToLeftInternal); 1936if (DataGridView.RightToLeftInternal) 2011DataGridView.RightToLeftInternal ? valBounds.Left : valBounds.Right - dropWidth, 2019DataGridView.RightToLeftInternal ? valBounds.Left + 1 : valBounds.Right - dropWidth - 1, 2028DataGridView.RightToLeftInternal ? valBounds.Left + 2 : valBounds.Right - dropWidth - 2, 2057DataGridViewComboBoxCellRenderer.DrawDropDownButton(g, dropRect, comboBoxState, DataGridView.RightToLeftInternal); 2210if (!DataGridView.RightToLeftInternal) 2224if (DataGridView.RightToLeftInternal) 2234if (DataGridView.RightToLeftInternal) 2255if (!DataGridView.RightToLeftInternal) 2297if (DataGridView.RightToLeftInternal) 2312TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (3)
611if (DataGridView!.RightToLeftInternal) 769DataGridView!.RightToLeftInternal ? cellStyle.Padding.Right : cellStyle.Padding.Left, 823PaintPadding(g, valBounds, cellStyle, brush!, DataGridView!.RightToLeftInternal);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (3)
558TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 922if (DataGridView.RightToLeftInternal) 957DataGridView.RightToLeftInternal,
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (11)
406if (DataGridView.RightToLeftInternal) 429if (DataGridView.RightToLeftInternal) 452if (DataGridView.RightToLeftInternal) 510if (DataGridView is not null && DataGridView.RightToLeftInternal) 534if (DataGridView is not null && DataGridView.RightToLeftInternal) 558if (DataGridView is not null && DataGridView.RightToLeftInternal) 1528if (dataGridView.RightToLeftInternal) 1584if (!dataGridView.RightToLeftInternal) 1596if (!dataGridView.RightToLeftInternal) 1618if (dataGridView.RightToLeftInternal) 1705if (dataGridView.RightToLeftInternal)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (23)
106Debug.Assert((!DataGridView.RightToLeftInternal && firstCell) || (DataGridView.RightToLeftInternal && lastCell)); 533TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 664if (DataGridView.RightToLeftInternal) 705bmFlipXPThemes.RotateFlip(DataGridView.RightToLeftInternal ? RotateFlipType.Rotate90FlipNone : RotateFlipType.Rotate270FlipY); 716if (DataGridView.RightToLeftInternal) 748if (DataGridView.RightToLeftInternal) 783bmp = GetPencilBitmap(DataGridView.RightToLeftInternal); 787bmp = GetArrowStarBitmap(DataGridView.RightToLeftInternal); 791bmp = GetArrowBitmap(DataGridView.RightToLeftInternal); 798bmp = GetPencilBitmap(DataGridView.RightToLeftInternal); 802bmp = GetArrowStarBitmap(DataGridView.RightToLeftInternal); 806bmp = GetArrowBitmap(DataGridView.RightToLeftInternal); 834if (!DataGridView.RightToLeftInternal) 851TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 864if (DataGridView.RightToLeftInternal) 939bmp = GetPencilBitmap(DataGridView.RightToLeftInternal); 943bmp = GetArrowStarBitmap(DataGridView.RightToLeftInternal); 947bmp = GetArrowBitmap(DataGridView.RightToLeftInternal); 954bmp = GetPencilBitmap(DataGridView.RightToLeftInternal); 958bmp = GetArrowStarBitmap(DataGridView.RightToLeftInternal); 962bmp = GetArrowBitmap(DataGridView.RightToLeftInternal); 1029int width = DataGridView.RightToLeftInternal
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (6)
151if (DataGridView.RightToLeftInternal) 175if (DataGridView.RightToLeftInternal) 224TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 410TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 695if (DataGridView.RightToLeftInternal) 732DataGridView.RightToLeftInternal,
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (4)
148TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 283if (DataGridView!.RightToLeftInternal) 318TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.RightToLeftInternal, cellStyle.Alignment, cellStyle.WrapMode); 370if (!DataGridView.RightToLeftInternal &&