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