67 references to ImageLayout
System.Windows.Forms (67)
winforms\Managed\System\WinForms\AxHost.cs (1)
389
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ComboBox.cs (1)
343
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\Control.cs (11)
1185
DefaultValue(
ImageLayout
.Tile),
1189
public virtual
ImageLayout
BackgroundImageLayout {
1193
return
ImageLayout
.Tile;
1196
return ((
ImageLayout
)Properties.GetObject(PropBackgroundImageLayout));
1202
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
ImageLayout
.None, (int)
ImageLayout
.Zoom)){
1203
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ImageLayout
));
1206
if (value ==
ImageLayout
.Center || value ==
ImageLayout
.Zoom || value ==
ImageLayout
.Stretch) {
9610
if (BackgroundImageLayout ==
ImageLayout
.Tile) {
winforms\Managed\System\WinForms\ControlPaint.cs (13)
74
internal static Rectangle CalculateBackgroundImageRectangle(Rectangle bounds, Image backgroundImage,
ImageLayout
imageLayout) {
80
case
ImageLayout
.Stretch:
84
case
ImageLayout
.None:
88
case
ImageLayout
.Center:
100
case
ImageLayout
.Zoom:
446
internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor,
ImageLayout
backgroundImageLayout, Rectangle bounds, Rectangle clipRect) {
449
internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor,
ImageLayout
backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset) {
453
internal static void DrawBackgroundImage(Graphics g, Image backgroundImage, Color backColor,
ImageLayout
backgroundImageLayout, Rectangle bounds, Rectangle clipRect, Point scrollOffset, RightToLeft rightToLeft) {
458
if(backgroundImageLayout ==
ImageLayout
.Tile) {
481
if (rightToLeft == RightToLeft.Yes && backgroundImageLayout ==
ImageLayout
.None) {
494
if (backgroundImageLayout ==
ImageLayout
.Stretch || backgroundImageLayout ==
ImageLayout
.Zoom) {
498
else if (backgroundImageLayout ==
ImageLayout
.None) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
2548
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\DataGridView.cs (1)
1348
public override
ImageLayout
BackgroundImageLayout
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
215
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\Label.cs (1)
248
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ListBox.cs (1)
233
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ListView.cs (1)
396
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\MDIClient.cs (2)
81
public override
ImageLayout
BackgroundImageLayout {
86
ImageLayout
imageLayout = base.BackgroundImageLayout;
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
353
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
810
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ProgressBar.cs (1)
193
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
413
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
270
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ScrollableControl.cs (3)
761
(BackgroundImageLayout ==
ImageLayout
.Zoom || BackgroundImageLayout ==
ImageLayout
.Stretch || BackgroundImageLayout ==
ImageLayout
.Center)) {
winforms\Managed\System\WinForms\ScrollBar.cs (1)
161
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\SplitContainer.cs (1)
315
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\Splitter.cs (1)
189
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\StatusBar.cs (1)
190
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\TabControl.cs (1)
259
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
354
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ToolBar.cs (1)
291
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ToolStripComboBox.cs (1)
188
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ToolStripContainer.cs (1)
152
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (2)
104
DefaultValue(
ImageLayout
.Tile),
108
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ToolStripItem.cs (7)
506
DefaultValue(
ImageLayout
.Tile),
510
public virtual
ImageLayout
BackgroundImageLayout {
514
return
ImageLayout
.Tile;
517
return ((
ImageLayout
)Properties.GetObject(PropBackgroundImageLayout));
523
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
ImageLayout
.None, (int)
ImageLayout
.Zoom))
525
throw new InvalidEnumArgumentException("value", (int)value, typeof(
ImageLayout
));
winforms\Managed\System\WinForms\ToolStripProgressBar.cs (1)
77
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
69
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
78
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\TrackBar.cs (1)
169
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\TreeView.cs (1)
256
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
248
public override
ImageLayout
BackgroundImageLayout {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
1465
public override
ImageLayout
BackgroundImageLayout {