254 references to RightToLeftInternal
System.Windows.Forms (254)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (19)
511
if (
RightToLeftInternal
)
527
if (
RightToLeftInternal
)
544
if ((!
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None)
545
|| (
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None))
548
if (
RightToLeftInternal
)
583
LeftInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.Outset : DataGridViewAdvancedCellBorderStyle.OutsetDouble,
584
RightInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.OutsetDouble : DataGridViewAdvancedCellBorderStyle.Outset,
593
LeftInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.Inset : DataGridViewAdvancedCellBorderStyle.InsetDouble,
594
RightInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.InsetDouble : DataGridViewAdvancedCellBorderStyle.Inset,
603
if ((!
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None)
604
|| (
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None))
607
if (
RightToLeftInternal
)
1165
if (
RightToLeftInternal
)
1271
if (
RightToLeftInternal
)
2143
if (
RightToLeftInternal
)
2718
if (!
RightToLeftInternal
)
2728
if (!
RightToLeftInternal
)
2736
if (!
RightToLeftInternal
)
2773
if (
RightToLeftInternal
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (148)
152
if (
RightToLeftInternal
)
177
if (
RightToLeftInternal
)
215
if (
RightToLeftInternal
)
237
if (
RightToLeftInternal
)
266
if (
RightToLeftInternal
)
291
if (
RightToLeftInternal
)
318
if (
RightToLeftInternal
)
2506
if (
RightToLeftInternal
)
2516
if (!
RightToLeftInternal
)
2573
_keyboardResizeStep = LogicalToDeviceUnits(
RightToLeftInternal
? -1 : 1);
2575
x +=
RightToLeftInternal
? -Columns[columnIndex].Width : Columns[columnIndex].Width;
2584
if (
RightToLeftInternal
)
2787
if (
RightToLeftInternal
)
3032
if (
RightToLeftInternal
)
3064
if (
RightToLeftInternal
)
3711
if ((
RightToLeftInternal
&& e.X < xColumnLeftEdge - wColumn / 2)
3712
|| (!
RightToLeftInternal
&& e.X > xColumnLeftEdge + wColumn / 2))
4459
if (
RightToLeftInternal
)
4479
if (
RightToLeftInternal
)
4506
if (!
RightToLeftInternal
)
4972
if (
RightToLeftInternal
)
4979
columnX =
RightToLeftInternal
? _layout.RowHeaders.Left - 1 : _layout.RowHeaders.Left;
5551
if (
RightToLeftInternal
)
5560
if (!
RightToLeftInternal
)
5697
if (
RightToLeftInternal
)
5707
if (!
RightToLeftInternal
)
5714
offsetFromCenter =
RightToLeftInternal
? InsertionBarWidth / 2 - 1 : InsertionBarWidth / 2 + 1;
5717
rectInsertionBar.X =
RightToLeftInternal
5817
if (
RightToLeftInternal
)
6167
if (
RightToLeftInternal
)
6350
if (
RightToLeftInternal
)
6880
if (!
RightToLeftInternal
)
7135
if (
RightToLeftInternal
)
7238
if (
RightToLeftInternal
)
7351
if (
RightToLeftInternal
)
7524
if (
RightToLeftInternal
)
7645
if (
RightToLeftInternal
)
7968
if (
RightToLeftInternal
)
8083
if (
RightToLeftInternal
)
8270
cx =
RightToLeftInternal
? data.Right : data.X;
8275
if ((
RightToLeftInternal
&& cx < data.X) || (!
RightToLeftInternal
&& cx > data.Right))
8286
if (
RightToLeftInternal
)
8306
if ((
RightToLeftInternal
&& cx < data.X) || (!
RightToLeftInternal
&& cx > data.Right))
8317
if (
RightToLeftInternal
)
8328
if (
RightToLeftInternal
)
8355
&& ((!
RightToLeftInternal
&& cx + viewedColumnWidth > data.Right)
8356
|| (
RightToLeftInternal
&& cx - viewedColumnWidth < data.X))
8357
?
RightToLeftInternal
? cx - data.X : data.Right - cx
8360
Rectangle columnRect =
RightToLeftInternal
8381
Debug.Assert(
RightToLeftInternal
|| (x >= data.X - 1 && x < data.Right), "x must be inside the horizontal bounds of this.layout.Data");
8382
Debug.Assert(!
RightToLeftInternal
|| (x >= data.X && x <= data.Right), "x must be inside the horizontal bounds of this.layout.Data");
8384
if (!
RightToLeftInternal
&& x == data.X - 1)
8388
else if (
RightToLeftInternal
&& x == data.Right)
8393
int cx =
RightToLeftInternal
? data.Right - 1 : data.X;
8398
&& ((!
RightToLeftInternal
&& cx < data.Right) || (
RightToLeftInternal
&& cx >= data.X)))
8400
if (
RightToLeftInternal
)
8409
if (!
RightToLeftInternal
&& cx > x)
8414
else if (
RightToLeftInternal
&& cx < x)
8425
if (
RightToLeftInternal
)
8439
&& ((!
RightToLeftInternal
&& cx < data.Right) || (
RightToLeftInternal
&& cx >= data.X)))
8442
if (
RightToLeftInternal
)
8451
if (!
RightToLeftInternal
&& cx > x)
8456
else if (
RightToLeftInternal
&& cx < x)
8512
int x =
RightToLeftInternal
? _layout.Data.Right - 1 : _layout.Data.X;
8522
if (
RightToLeftInternal
)
8536
if (
RightToLeftInternal
)
8560
if (
RightToLeftInternal
)
8582
if (
RightToLeftInternal
)
8652
hti = HitTest(
RightToLeftInternal
? rectScrollingArea.Right - 1 : rectScrollingArea.Left, mouseY);
8681
hti = HitTest(
RightToLeftInternal
? rectScrollingArea.Right : rectScrollingArea.Left, mouseY);
8699
mouseX =
RightToLeftInternal
? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1;
8703
hti = HitTest(
RightToLeftInternal
? rectScrollingArea.Right : rectScrollingArea.Left, mouseY);
8716
mouseX =
RightToLeftInternal
? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1;
8772
if ((!
RightToLeftInternal
&& mouseX < rectScrollingArea.Left) || (
RightToLeftInternal
&& mouseX > rectScrollingArea.Right))
8784
if (
RightToLeftInternal
)
8804
Debug.Assert((!
RightToLeftInternal
&& mouseX > rectScrollingArea.Right) || (
RightToLeftInternal
&& mouseX < rectScrollingArea.Left));
8838
if (
RightToLeftInternal
)
8923
if ((!
RightToLeftInternal
&& mouseX < rectScrollingArea.Left) || (
RightToLeftInternal
&& mouseX > rectScrollingArea.Right))
8935
if (
RightToLeftInternal
)
8949
if (!
RightToLeftInternal
&& mouseX < _layout.Data.Left)
8954
else if (
RightToLeftInternal
&& mouseX > _layout.Data.Right)
8961
else if ((!
RightToLeftInternal
&& mouseX > rectScrollingArea.Right) || (
RightToLeftInternal
&& mouseX < rectScrollingArea.Left))
8991
if (
RightToLeftInternal
)
9005
mouseX =
RightToLeftInternal
? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1;
9013
mouseX =
RightToLeftInternal
? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1;
9152
if (!
RightToLeftInternal
)
9365
hti._colStart =
RightToLeftInternal
? _layout.TopLeftHeader.Right - 1 : _layout.TopLeftHeader.Left;
9368
if ((!
RightToLeftInternal
&& _layout.TopLeftHeader.Right - x < ColumnSizingHotZone)
9369
|| (
RightToLeftInternal
&& x - _layout.TopLeftHeader.Left < ColumnSizingHotZone))
9375
hti._mouseBarOffset =
RightToLeftInternal
9409
if ((!
RightToLeftInternal
&& xColumnLeftEdge + columnWidth - x < ColumnSizingHotZone)
9410
|| (
RightToLeftInternal
&& x - xColumnLeftEdge + columnWidth < ColumnSizingHotZone))
9413
hti._mouseBarOffset =
RightToLeftInternal
9424
else if ((!
RightToLeftInternal
&& x - xColumnLeftEdge < ColumnSizingHotZone)
9425
|| (
RightToLeftInternal
&& xColumnLeftEdge - x < ColumnSizingHotZone))
9436
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x + 1 : xColumnLeftEdge - x - 1;
9449
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x : xColumnLeftEdge - x - 1;
9481
hti._colStart =
RightToLeftInternal
? _layout.RowHeaders.Right - 1 : _layout.RowHeaders.Left;
9521
else if ((!
RightToLeftInternal
&& _layout.RowHeaders.Right - x < ColumnSizingHotZone)
9522
|| (
RightToLeftInternal
&& x - _layout.RowHeaders.Left < ColumnSizingHotZone))
9528
hti._mouseBarOffset =
RightToLeftInternal
9553
if ((!
RightToLeftInternal
&& xColumnLeftEdge + columnWidth - x < ColumnSizingHotZone)
9554
|| (
RightToLeftInternal
&& x - xColumnLeftEdge + columnWidth < ColumnSizingHotZone))
9556
hti._mouseBarOffset =
RightToLeftInternal
9570
else if ((!
RightToLeftInternal
&& x - xColumnLeftEdge < ColumnSizingHotZone)
9571
|| (
RightToLeftInternal
&& xColumnLeftEdge - x < ColumnSizingHotZone))
9584
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x + 1 : xColumnLeftEdge - x - 1;
9600
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x : xColumnLeftEdge - x - 1;
9607
else if ((!
RightToLeftInternal
&& x - xColumnLeftEdge < ColumnSizingHotZone)
9608
|| (
RightToLeftInternal
&& xColumnLeftEdge - x < ColumnSizingHotZone))
9617
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x : xColumnLeftEdge - x - 1;
9701
hti = HitTest(ptMouse.X + (
RightToLeftInternal
? 1 : -1) * (xOffset + normOffset), mouseY);
9711
ptMouse.X + (
RightToLeftInternal
? 1 : -1) * (xOffset + normOffset),
9713
: HitTest(ptMouse.X + (
RightToLeftInternal
? 1 : -1) * (xOffset + normOffset), mouseY);
10212
bool rightToLeftInternal =
RightToLeftInternal
;
14560
if (
RightToLeftInternal
)
14679
if (
RightToLeftInternal
)
15864
if (
RightToLeftInternal
)
15948
if (
RightToLeftInternal
)
16032
if (
RightToLeftInternal
)
16184
if (
RightToLeftInternal
)
16418
if (
RightToLeftInternal
)
16496
if (
RightToLeftInternal
)
16809
if (!
RightToLeftInternal
)
19300
if (!
RightToLeftInternal
)
19309
if (!
RightToLeftInternal
)
19319
if (!
RightToLeftInternal
)
19426
cellBounds.X =
RightToLeftInternal
? bandBounds.Right - cx - cellBounds.Width : bandBounds.X + cx;
19468
if (!
RightToLeftInternal
)
19482
if (!
RightToLeftInternal
)
19504
cellBounds.X =
RightToLeftInternal
19880
if (
RightToLeftInternal
)
19892
if (!
RightToLeftInternal
)
19930
if (!
RightToLeftInternal
)
22131
protected bool ProcessLeftKey(Keys keyData) =>
RightToLeftInternal
23508
protected bool ProcessRightKey(Keys keyData) =>
RightToLeftInternal
26126
if (
RightToLeftInternal
)
29079
if (!
RightToLeftInternal
)
29154
if (!
RightToLeftInternal
)
29253
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)
770
if (DataGridView is not null && DataGridView.
RightToLeftInternal
)
791
if (DataGridView.
RightToLeftInternal
)
854
if (DataGridView is not null && DataGridView.
RightToLeftInternal
)
1011
Rectangle bmpRect = new(DataGridView!.
RightToLeftInternal
?
2764
DataGridView.
RightToLeftInternal
,
3165
DataGridView.
RightToLeftInternal
? bounds.X : bounds.Right - dividerThickness,
3170
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)
588
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
952
if (DataGridView.
RightToLeftInternal
)
987
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
&&