254 references to RightToLeftInternal
System.Windows.Forms (254)
winforms\Managed\System\WinForms\DataGridView.cs (19)
563
if (this.
RightToLeftInternal
)
578
if (this.
RightToLeftInternal
)
594
if ((!this.
RightToLeftInternal
&& this.AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None) ||
595
(this.
RightToLeftInternal
&& this.AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None))
598
if (this.
RightToLeftInternal
)
630
dgvabs.LeftInternal = this.
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.Outset : DataGridViewAdvancedCellBorderStyle.OutsetDouble;
631
dgvabs.RightInternal = this.
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.OutsetDouble : DataGridViewAdvancedCellBorderStyle.Outset;
638
dgvabs.LeftInternal = this.
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.Inset : DataGridViewAdvancedCellBorderStyle.InsetDouble;
639
dgvabs.RightInternal = this.
RightToLeftInternal
? DataGridViewAdvancedCellBorderStyle.InsetDouble : DataGridViewAdvancedCellBorderStyle.Inset;
647
if ((!this.
RightToLeftInternal
&& this.AdvancedColumnHeadersBorderStyle.Left == DataGridViewAdvancedCellBorderStyle.None) ||
648
(this.
RightToLeftInternal
&& this.AdvancedColumnHeadersBorderStyle.Right == DataGridViewAdvancedCellBorderStyle.None))
651
if (this.
RightToLeftInternal
)
1515
if (this.
RightToLeftInternal
)
1617
if (this.
RightToLeftInternal
)
2700
if (this.
RightToLeftInternal
)
3417
if (!this.
RightToLeftInternal
)
3427
if (!this.
RightToLeftInternal
)
3434
if (!this.
RightToLeftInternal
)
3469
if (this.
RightToLeftInternal
)
winforms\Managed\System\WinForms\DataGridViewAdvancedBorderStyle.cs (2)
173
if ((this.owner != null && this.owner.
RightToLeftInternal
) &&
234
if ((this.owner != null && !this.owner.
RightToLeftInternal
) &&
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (3)
349
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
743
if (this.DataGridView.
RightToLeftInternal
)
1037
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
winforms\Managed\System\WinForms\DataGridViewCell.cs (7)
1007
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
1027
if (this.DataGridView.
RightToLeftInternal
)
1085
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
1252
Rectangle bmpRect = new Rectangle(this.DataGridView.
RightToLeftInternal
?
3156
this.DataGridView.
RightToLeftInternal
,
3593
this.DataGridView.
RightToLeftInternal
? bounds.X : bounds.Right - dividerThickness,
3597
if (this.DataGridView.
RightToLeftInternal
)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (3)
1226
if (this.DataGridView.
RightToLeftInternal
)
1302
if ((!this.DataGridView.
RightToLeftInternal
&& (cellStyle.Alignment & anyRight) != 0) ||
1303
(this.DataGridView.
RightToLeftInternal
&& (cellStyle.Alignment & anyLeft) != 0))
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (8)
540
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
808
if (this.DataGridView.
RightToLeftInternal
)
854
if (this.DataGridView.
RightToLeftInternal
)
878
if (this.DataGridView.
RightToLeftInternal
)
902
if (this.DataGridView.
RightToLeftInternal
)
950
int preferredHeight = DataGridViewCell.GetPreferredTextHeight(g, this.DataGridView.
RightToLeftInternal
, formattedValueStr, cellStyle, width, out widthTruncated);
957
if (this.DataGridView.
RightToLeftInternal
)
982
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (14)
770
if (this.DataGridView.
RightToLeftInternal
)
1374
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
2171
DataGridViewCell.PaintPadding(g, valBounds, cellStyle, br, this.DataGridView.
RightToLeftInternal
);
2176
if (this.DataGridView.
RightToLeftInternal
)
2247
dropRect = new Rectangle(this.DataGridView.
RightToLeftInternal
? valBounds.Left : valBounds.Right - dropWidth,
2254
dropRect = new Rectangle(this.DataGridView.
RightToLeftInternal
? valBounds.Left + 1 : valBounds.Right - dropWidth - 1,
2262
dropRect = new Rectangle(this.DataGridView.
RightToLeftInternal
? valBounds.Left + 2 : valBounds.Right - dropWidth - 2,
2291
DataGridViewComboBoxCellRenderer.DrawDropDownButton(g, dropRect, comboBoxState, this.DataGridView.
RightToLeftInternal
);
2497
if (!this.DataGridView.
RightToLeftInternal
)
2510
if (this.DataGridView.
RightToLeftInternal
)
2520
if (this.DataGridView.
RightToLeftInternal
)
2541
if (!this.DataGridView.
RightToLeftInternal
)
2584
if (this.DataGridView.
RightToLeftInternal
)
2598
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (3)
663
if (this.DataGridView.
RightToLeftInternal
)
828
if (this.DataGridView.
RightToLeftInternal
)
873
DataGridViewCell.PaintPadding(g, valBounds, cellStyle, br, this.DataGridView.
RightToLeftInternal
);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (3)
672
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
1028
if (this.DataGridView.
RightToLeftInternal
)
1057
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (148)
111
if (this.
RightToLeftInternal
)
140
if (this.
RightToLeftInternal
)
182
if (this.
RightToLeftInternal
)
203
if (this.
RightToLeftInternal
)
232
if (this.
RightToLeftInternal
)
261
if (this.
RightToLeftInternal
)
292
if (this.
RightToLeftInternal
)
2490
if (this.
RightToLeftInternal
)
2499
if (!this.
RightToLeftInternal
)
2554
this.keyboardResizeStep = this.ScaleToCurrentDpi(this.
RightToLeftInternal
? -1 : 1);
2556
x += this.
RightToLeftInternal
? -this.Columns[columnIndex].Width : this.Columns[columnIndex].Width;
2565
if (this.
RightToLeftInternal
)
2780
if (this.
RightToLeftInternal
)
3020
if (this.
RightToLeftInternal
)
3042
if (this.
RightToLeftInternal
)
3702
if ((this.
RightToLeftInternal
&& e.X < xColumnLeftEdge - wColumn / 2) ||
3703
(!this.
RightToLeftInternal
&& e.X > xColumnLeftEdge + wColumn / 2))
4373
if (this.
RightToLeftInternal
)
4392
if (this.
RightToLeftInternal
)
4418
if (!this.
RightToLeftInternal
)
4906
if (this.
RightToLeftInternal
)
4913
if (this.
RightToLeftInternal
)
5505
if (this.
RightToLeftInternal
)
5514
if (!this.
RightToLeftInternal
)
5694
if (this.
RightToLeftInternal
)
5704
if (!this.
RightToLeftInternal
)
5711
if (this.
RightToLeftInternal
)
5720
if (this.
RightToLeftInternal
)
5822
if (this.
RightToLeftInternal
)
6148
if (this.
RightToLeftInternal
)
6322
if (this.
RightToLeftInternal
)
6891
if (!this.
RightToLeftInternal
)
7155
if (this.
RightToLeftInternal
)
7274
if (this.
RightToLeftInternal
)
7376
if (this.
RightToLeftInternal
)
7538
if (this.
RightToLeftInternal
)
7647
if (this.
RightToLeftInternal
)
8003
if (this.
RightToLeftInternal
)
8105
if (this.
RightToLeftInternal
)
8266
if (this.
RightToLeftInternal
)
8278
if ((this.
RightToLeftInternal
&& cx < data.X) ||
8279
(!this.
RightToLeftInternal
&& cx > data.Right))
8289
if (this.
RightToLeftInternal
)
8309
if ((this.
RightToLeftInternal
&& cx < data.X) ||
8310
(!this.
RightToLeftInternal
&& cx > data.Right))
8320
if (this.
RightToLeftInternal
)
8330
if (this.
RightToLeftInternal
)
8355
((!this.
RightToLeftInternal
&& cx + viewedColumnWidth > data.Right) ||
8356
(this.
RightToLeftInternal
&& cx - viewedColumnWidth < data.X)))
8358
if (this.
RightToLeftInternal
)
8373
if (this.
RightToLeftInternal
)
8397
Debug.Assert(this.
RightToLeftInternal
|| (x >= data.X - 1 && x < data.Right), "x must be inside the horizontal bounds of this.layout.Data");
8398
Debug.Assert(!this.
RightToLeftInternal
|| (x >= data.X && x <= data.Right), "x must be inside the horizontal bounds of this.layout.Data");
8400
if (!this.
RightToLeftInternal
&& x == data.X - 1)
8404
else if (this.
RightToLeftInternal
&& x == data.Right)
8410
if (this.
RightToLeftInternal
)
8422
((!this.
RightToLeftInternal
&& cx < data.Right) || (this.
RightToLeftInternal
&& cx >= data.X)))
8424
if (this.
RightToLeftInternal
)
8432
if (!this.
RightToLeftInternal
&& cx > x)
8437
else if (this.
RightToLeftInternal
&& cx < x)
8447
if (this.
RightToLeftInternal
)
8461
((!this.
RightToLeftInternal
&& cx < data.Right) || (this.
RightToLeftInternal
&& cx >= data.X)))
8464
if (this.
RightToLeftInternal
)
8472
if (!this.
RightToLeftInternal
&& cx > x)
8477
else if (this.
RightToLeftInternal
&& cx < x)
8529
if (this.
RightToLeftInternal
)
8545
if (this.
RightToLeftInternal
)
8558
if (this.
RightToLeftInternal
)
8585
if (this.
RightToLeftInternal
)
8606
if (this.
RightToLeftInternal
)
8671
hti = HitTest(this.
RightToLeftInternal
? rectScrollingArea.Right-1 : rectScrollingArea.Left, mouseY);
8698
hti = HitTest(this.
RightToLeftInternal
? rectScrollingArea.Right : rectScrollingArea.Left, mouseY);
8715
if (this.
RightToLeftInternal
)
8726
hti = HitTest(this.
RightToLeftInternal
? rectScrollingArea.Right : rectScrollingArea.Left, mouseY);
8739
if (this.
RightToLeftInternal
)
8801
if ((!this.
RightToLeftInternal
&& mouseX < rectScrollingArea.Left) ||
8802
(this.
RightToLeftInternal
&& mouseX > rectScrollingArea.Right))
8812
if (this.
RightToLeftInternal
)
8831
Debug.Assert((!this.
RightToLeftInternal
&& mouseX > rectScrollingArea.Right) || (this.
RightToLeftInternal
&& mouseX < rectScrollingArea.Left));
8858
if (this.
RightToLeftInternal
)
8942
if ((!this.
RightToLeftInternal
&& mouseX < rectScrollingArea.Left) ||
8943
(this.
RightToLeftInternal
&& mouseX > rectScrollingArea.Right))
8959
if (this.
RightToLeftInternal
)
8973
if (!this.
RightToLeftInternal
&& mouseX < this.layout.Data.Left)
8978
else if (this.
RightToLeftInternal
&& mouseX > this.layout.Data.Right)
8985
else if ((!this.
RightToLeftInternal
&& mouseX > rectScrollingArea.Right) ||
8986
(this.
RightToLeftInternal
&& mouseX < rectScrollingArea.Left))
9009
if (this.
RightToLeftInternal
)
9023
if (this.
RightToLeftInternal
)
9037
if (this.
RightToLeftInternal
)
9188
if (!this.
RightToLeftInternal
)
9402
if (this.
RightToLeftInternal
)
9411
if ((!this.
RightToLeftInternal
&& this.layout.TopLeftHeader.Right - x < DATAGRIDVIEW_columnSizingHotZone) ||
9412
(this.
RightToLeftInternal
&& x - this.layout.TopLeftHeader.Left < DATAGRIDVIEW_columnSizingHotZone))
9418
if (this.
RightToLeftInternal
)
9455
if ((!this.
RightToLeftInternal
&& xColumnLeftEdge + columnWidth - x < DATAGRIDVIEW_columnSizingHotZone) ||
9456
(this.
RightToLeftInternal
&& x - xColumnLeftEdge + columnWidth < DATAGRIDVIEW_columnSizingHotZone))
9459
if (this.
RightToLeftInternal
)
9478
else if ((!this.
RightToLeftInternal
&& x - xColumnLeftEdge < DATAGRIDVIEW_columnSizingHotZone) ||
9479
(this.
RightToLeftInternal
&& xColumnLeftEdge - x < DATAGRIDVIEW_columnSizingHotZone))
9493
if (this.
RightToLeftInternal
)
9516
if (this.
RightToLeftInternal
)
9555
if (this.
RightToLeftInternal
)
9600
else if ((!this.
RightToLeftInternal
&& this.layout.RowHeaders.Right - x < DATAGRIDVIEW_columnSizingHotZone) ||
9601
(this.
RightToLeftInternal
&& x - this.layout.RowHeaders.Left < DATAGRIDVIEW_columnSizingHotZone))
9607
if (this.
RightToLeftInternal
)
9637
if ((!this.
RightToLeftInternal
&& xColumnLeftEdge + columnWidth - x < DATAGRIDVIEW_columnSizingHotZone) ||
9638
(this.
RightToLeftInternal
&& x - xColumnLeftEdge + columnWidth < DATAGRIDVIEW_columnSizingHotZone))
9640
if (this.
RightToLeftInternal
)
9656
else if ((!this.
RightToLeftInternal
&& x - xColumnLeftEdge < DATAGRIDVIEW_columnSizingHotZone) ||
9657
(this.
RightToLeftInternal
&& xColumnLeftEdge - x < DATAGRIDVIEW_columnSizingHotZone))
9669
if (this.
RightToLeftInternal
)
9689
if (this.
RightToLeftInternal
)
9702
else if ((!this.
RightToLeftInternal
&& x - xColumnLeftEdge < DATAGRIDVIEW_columnSizingHotZone) ||
9703
(this.
RightToLeftInternal
&& xColumnLeftEdge - x < DATAGRIDVIEW_columnSizingHotZone))
9712
if (this.
RightToLeftInternal
)
9800
hti = HitTest(ptMouse.X+(this.
RightToLeftInternal
?1:-1)*(xOffset+normOffset), mouseY);
9810
hti = HitTest(ptMouse.X+(this.
RightToLeftInternal
?1:-1)*(xOffset+normOffset), ptMouse.Y-yOffset-(yOffset/Math.Abs(yOffset)));
9814
hti = HitTest(ptMouse.X+(this.
RightToLeftInternal
?1:-1)*(xOffset+normOffset), mouseY);
10333
bool rightToLeftInternal = this.
RightToLeftInternal
;
14963
if (this.
RightToLeftInternal
)
15108
if (this.
RightToLeftInternal
)
16260
if (this.
RightToLeftInternal
)
16340
if (this.
RightToLeftInternal
)
16420
if (this.
RightToLeftInternal
)
16544
if (this.
RightToLeftInternal
)
16800
if (this.
RightToLeftInternal
)
16874
if (this.
RightToLeftInternal
)
17196
if (!this.
RightToLeftInternal
)
19797
if (!this.
RightToLeftInternal
)
19805
if (!this.
RightToLeftInternal
)
19813
if (!this.
RightToLeftInternal
)
19913
if (this.
RightToLeftInternal
)
19957
if (!this.
RightToLeftInternal
)
19970
if (!this.
RightToLeftInternal
)
19990
if (this.
RightToLeftInternal
)
20363
if (this.
RightToLeftInternal
)
20374
if (!this.
RightToLeftInternal
)
20405
if (!this.
RightToLeftInternal
)
22488
if (this.
RightToLeftInternal
)
23726
if (this.
RightToLeftInternal
)
26175
if (this.
RightToLeftInternal
)
29065
if (!this.
RightToLeftInternal
)
29129
if (!this.
RightToLeftInternal
)
29224
if (this.
RightToLeftInternal
)
winforms\Managed\System\WinForms\DataGridViewRow.cs (11)
504
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
525
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
546
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
600
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
622
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
644
if (this.DataGridView != null && this.DataGridView.
RightToLeftInternal
)
1625
if (dataGridView.
RightToLeftInternal
)
1681
if (!dataGridView.
RightToLeftInternal
)
1692
if (!dataGridView.
RightToLeftInternal
)
1712
if (dataGridView.
RightToLeftInternal
)
1800
if (dataGridView.
RightToLeftInternal
)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (23)
233
Debug.Assert((!this.DataGridView.
RightToLeftInternal
&& firstCell) || (this.DataGridView.
RightToLeftInternal
&& lastCell));
668
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
797
if (this.DataGridView.
RightToLeftInternal
)
837
bmFlipXPThemes.RotateFlip(this.DataGridView.
RightToLeftInternal
? RotateFlipType.Rotate90FlipNone : RotateFlipType.Rotate270FlipY);
848
if (this.DataGridView.
RightToLeftInternal
)
875
if (this.DataGridView.
RightToLeftInternal
)
911
bmp = GetPencilBitmap(this.DataGridView.
RightToLeftInternal
);
915
bmp = GetArrowStarBitmap(this.DataGridView.
RightToLeftInternal
);
919
bmp = GetArrowBitmap(this.DataGridView.
RightToLeftInternal
);
926
bmp = GetPencilBitmap(this.DataGridView.
RightToLeftInternal
);
930
bmp = GetArrowStarBitmap(this.DataGridView.
RightToLeftInternal
);
934
bmp = GetArrowBitmap(this.DataGridView.
RightToLeftInternal
);
959
if (!this.DataGridView.
RightToLeftInternal
)
974
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
986
if (this.DataGridView.
RightToLeftInternal
)
1057
bmp = GetPencilBitmap(this.DataGridView.
RightToLeftInternal
);
1061
bmp = GetArrowStarBitmap(this.DataGridView.
RightToLeftInternal
);
1065
bmp = GetArrowBitmap(this.DataGridView.
RightToLeftInternal
);
1072
bmp = GetPencilBitmap(this.DataGridView.
RightToLeftInternal
);
1076
bmp = GetArrowStarBitmap(this.DataGridView.
RightToLeftInternal
);
1080
bmp = GetArrowBitmap(this.DataGridView.
RightToLeftInternal
);
1132
Rectangle bmpRect = new Rectangle(this.DataGridView.
RightToLeftInternal
?
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (6)
205
if (this.DataGridView.
RightToLeftInternal
)
228
if (this.DataGridView.
RightToLeftInternal
)
275
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
447
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
724
if (this.DataGridView.
RightToLeftInternal
)
761
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
winforms\Managed\System\WinForms\DataGridViewTopLeftHeaderCell.cs (4)
186
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
320
if (this.DataGridView.
RightToLeftInternal
)
353
TextFormatFlags flags = DataGridViewUtilities.ComputeTextFormatFlagsForCellStyleAlignment(this.DataGridView.
RightToLeftInternal
, cellStyle.Alignment, cellStyle.WrapMode);
403
if (!this.DataGridView.
RightToLeftInternal
&&