254 references to RightToLeftInternal
System.Windows.Forms (254)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (19)
510
if (
RightToLeftInternal
)
526
if (
RightToLeftInternal
)
543
if ((!
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None)
544
|| (
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None))
547
if (
RightToLeftInternal
)
582
LeftInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.Outset : DataGridViewAdvancedCellBorderStyle.OutsetDouble,
583
RightInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.OutsetDouble : DataGridViewAdvancedCellBorderStyle.Outset,
592
LeftInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.Inset : DataGridViewAdvancedCellBorderStyle.InsetDouble,
593
RightInternal =
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.InsetDouble : DataGridViewAdvancedCellBorderStyle.Inset,
602
if ((!
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None)
603
|| (
RightToLeftInternal
&& AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None))
606
if (
RightToLeftInternal
)
1164
if (
RightToLeftInternal
)
1270
if (
RightToLeftInternal
)
2131
if (
RightToLeftInternal
)
2706
if (!
RightToLeftInternal
)
2716
if (!
RightToLeftInternal
)
2724
if (!
RightToLeftInternal
)
2761
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
)
2745
if (
RightToLeftInternal
)
2976
if (
RightToLeftInternal
)
3008
if (
RightToLeftInternal
)
3655
if ((
RightToLeftInternal
&& e.X < xColumnLeftEdge - wColumn / 2)
3656
|| (!
RightToLeftInternal
&& e.X > xColumnLeftEdge + wColumn / 2))
4403
if (
RightToLeftInternal
)
4423
if (
RightToLeftInternal
)
4450
if (!
RightToLeftInternal
)
4916
if (
RightToLeftInternal
)
4923
columnX =
RightToLeftInternal
? _layout.RowHeaders.Left - 1 : _layout.RowHeaders.Left;
5495
if (
RightToLeftInternal
)
5504
if (!
RightToLeftInternal
)
5641
if (
RightToLeftInternal
)
5651
if (!
RightToLeftInternal
)
5658
offsetFromCenter =
RightToLeftInternal
? InsertionBarWidth / 2 - 1 : InsertionBarWidth / 2 + 1;
5661
rectInsertionBar.X =
RightToLeftInternal
5761
if (
RightToLeftInternal
)
6111
if (
RightToLeftInternal
)
6294
if (
RightToLeftInternal
)
6824
if (!
RightToLeftInternal
)
7079
if (
RightToLeftInternal
)
7182
if (
RightToLeftInternal
)
7295
if (
RightToLeftInternal
)
7468
if (
RightToLeftInternal
)
7589
if (
RightToLeftInternal
)
7912
if (
RightToLeftInternal
)
8027
if (
RightToLeftInternal
)
8214
cx =
RightToLeftInternal
? data.Right : data.X;
8219
if ((
RightToLeftInternal
&& cx < data.X) || (!
RightToLeftInternal
&& cx > data.Right))
8230
if (
RightToLeftInternal
)
8250
if ((
RightToLeftInternal
&& cx < data.X) || (!
RightToLeftInternal
&& cx > data.Right))
8261
if (
RightToLeftInternal
)
8272
if (
RightToLeftInternal
)
8299
&& ((!
RightToLeftInternal
&& cx + viewedColumnWidth > data.Right)
8300
|| (
RightToLeftInternal
&& cx - viewedColumnWidth < data.X))
8301
?
RightToLeftInternal
? cx - data.X : data.Right - cx
8304
Rectangle columnRect =
RightToLeftInternal
8325
Debug.Assert(
RightToLeftInternal
|| (x >= data.X - 1 && x < data.Right), "x must be inside the horizontal bounds of this.layout.Data");
8326
Debug.Assert(!
RightToLeftInternal
|| (x >= data.X && x <= data.Right), "x must be inside the horizontal bounds of this.layout.Data");
8328
if (!
RightToLeftInternal
&& x == data.X - 1)
8332
else if (
RightToLeftInternal
&& x == data.Right)
8337
int cx =
RightToLeftInternal
? data.Right - 1 : data.X;
8342
&& ((!
RightToLeftInternal
&& cx < data.Right) || (
RightToLeftInternal
&& cx >= data.X)))
8344
if (
RightToLeftInternal
)
8353
if (!
RightToLeftInternal
&& cx > x)
8358
else if (
RightToLeftInternal
&& cx < x)
8369
if (
RightToLeftInternal
)
8383
&& ((!
RightToLeftInternal
&& cx < data.Right) || (
RightToLeftInternal
&& cx >= data.X)))
8386
if (
RightToLeftInternal
)
8395
if (!
RightToLeftInternal
&& cx > x)
8400
else if (
RightToLeftInternal
&& cx < x)
8456
int x =
RightToLeftInternal
? _layout.Data.Right - 1 : _layout.Data.X;
8466
if (
RightToLeftInternal
)
8480
if (
RightToLeftInternal
)
8504
if (
RightToLeftInternal
)
8526
if (
RightToLeftInternal
)
8596
hti = HitTest(
RightToLeftInternal
? rectScrollingArea.Right - 1 : rectScrollingArea.Left, mouseY);
8625
hti = HitTest(
RightToLeftInternal
? rectScrollingArea.Right : rectScrollingArea.Left, mouseY);
8643
mouseX =
RightToLeftInternal
? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1;
8647
hti = HitTest(
RightToLeftInternal
? rectScrollingArea.Right : rectScrollingArea.Left, mouseY);
8660
mouseX =
RightToLeftInternal
? rectScrollingArea.Right - 1 : rectScrollingArea.Left + 1;
8716
if ((!
RightToLeftInternal
&& mouseX < rectScrollingArea.Left) || (
RightToLeftInternal
&& mouseX > rectScrollingArea.Right))
8728
if (
RightToLeftInternal
)
8748
Debug.Assert((!
RightToLeftInternal
&& mouseX > rectScrollingArea.Right) || (
RightToLeftInternal
&& mouseX < rectScrollingArea.Left));
8782
if (
RightToLeftInternal
)
8867
if ((!
RightToLeftInternal
&& mouseX < rectScrollingArea.Left) || (
RightToLeftInternal
&& mouseX > rectScrollingArea.Right))
8879
if (
RightToLeftInternal
)
8893
if (!
RightToLeftInternal
&& mouseX < _layout.Data.Left)
8898
else if (
RightToLeftInternal
&& mouseX > _layout.Data.Right)
8905
else if ((!
RightToLeftInternal
&& mouseX > rectScrollingArea.Right) || (
RightToLeftInternal
&& mouseX < rectScrollingArea.Left))
8935
if (
RightToLeftInternal
)
8949
mouseX =
RightToLeftInternal
? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1;
8957
mouseX =
RightToLeftInternal
? rectScrollingArea.Left + 1 : rectScrollingArea.Right - 1;
9096
if (!
RightToLeftInternal
)
9309
hti._colStart =
RightToLeftInternal
? _layout.TopLeftHeader.Right - 1 : _layout.TopLeftHeader.Left;
9312
if ((!
RightToLeftInternal
&& _layout.TopLeftHeader.Right - x < ColumnSizingHotZone)
9313
|| (
RightToLeftInternal
&& x - _layout.TopLeftHeader.Left < ColumnSizingHotZone))
9319
hti._mouseBarOffset =
RightToLeftInternal
9353
if ((!
RightToLeftInternal
&& xColumnLeftEdge + columnWidth - x < ColumnSizingHotZone)
9354
|| (
RightToLeftInternal
&& x - xColumnLeftEdge + columnWidth < ColumnSizingHotZone))
9357
hti._mouseBarOffset =
RightToLeftInternal
9368
else if ((!
RightToLeftInternal
&& x - xColumnLeftEdge < ColumnSizingHotZone)
9369
|| (
RightToLeftInternal
&& xColumnLeftEdge - x < ColumnSizingHotZone))
9380
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x + 1 : xColumnLeftEdge - x - 1;
9393
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x : xColumnLeftEdge - x - 1;
9425
hti._colStart =
RightToLeftInternal
? _layout.RowHeaders.Right - 1 : _layout.RowHeaders.Left;
9465
else if ((!
RightToLeftInternal
&& _layout.RowHeaders.Right - x < ColumnSizingHotZone)
9466
|| (
RightToLeftInternal
&& x - _layout.RowHeaders.Left < ColumnSizingHotZone))
9472
hti._mouseBarOffset =
RightToLeftInternal
9497
if ((!
RightToLeftInternal
&& xColumnLeftEdge + columnWidth - x < ColumnSizingHotZone)
9498
|| (
RightToLeftInternal
&& x - xColumnLeftEdge + columnWidth < ColumnSizingHotZone))
9500
hti._mouseBarOffset =
RightToLeftInternal
9514
else if ((!
RightToLeftInternal
&& x - xColumnLeftEdge < ColumnSizingHotZone)
9515
|| (
RightToLeftInternal
&& xColumnLeftEdge - x < ColumnSizingHotZone))
9528
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x + 1 : xColumnLeftEdge - x - 1;
9544
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x : xColumnLeftEdge - x - 1;
9551
else if ((!
RightToLeftInternal
&& x - xColumnLeftEdge < ColumnSizingHotZone)
9552
|| (
RightToLeftInternal
&& xColumnLeftEdge - x < ColumnSizingHotZone))
9561
hti._mouseBarOffset =
RightToLeftInternal
? xColumnLeftEdge - x : xColumnLeftEdge - x - 1;
9645
hti = HitTest(ptMouse.X + (
RightToLeftInternal
? 1 : -1) * (xOffset + normOffset), mouseY);
9655
ptMouse.X + (
RightToLeftInternal
? 1 : -1) * (xOffset + normOffset),
9657
: HitTest(ptMouse.X + (
RightToLeftInternal
? 1 : -1) * (xOffset + normOffset), mouseY);
10156
bool rightToLeftInternal =
RightToLeftInternal
;
14504
if (
RightToLeftInternal
)
14623
if (
RightToLeftInternal
)
15802
if (
RightToLeftInternal
)
15886
if (
RightToLeftInternal
)
15970
if (
RightToLeftInternal
)
16122
if (
RightToLeftInternal
)
16356
if (
RightToLeftInternal
)
16434
if (
RightToLeftInternal
)
16750
if (!
RightToLeftInternal
)
19241
if (!
RightToLeftInternal
)
19250
if (!
RightToLeftInternal
)
19260
if (!
RightToLeftInternal
)
19367
cellBounds.X =
RightToLeftInternal
? bandBounds.Right - cx - cellBounds.Width : bandBounds.X + cx;
19409
if (!
RightToLeftInternal
)
19423
if (!
RightToLeftInternal
)
19445
cellBounds.X =
RightToLeftInternal
19824
if (
RightToLeftInternal
)
19836
if (!
RightToLeftInternal
)
19874
if (!
RightToLeftInternal
)
22067
protected bool ProcessLeftKey(Keys keyData) =>
RightToLeftInternal
23444
protected bool ProcessRightKey(Keys keyData) =>
RightToLeftInternal
26062
if (
RightToLeftInternal
)
29014
if (!
RightToLeftInternal
)
29089
if (!
RightToLeftInternal
)
29188
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
&&