61 references to ImageLayout
System.Windows.Forms (61)
_generated\1\Validation.cs (2)
23
public static void Validate(System.Windows.Forms.
ImageLayout
enumToValidate, string parameterName = "value")
27
ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.
ImageLayout
));
System\Windows\Forms\ActiveX\AxHost.cs (1)
273
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Control.cs (8)
960
[DefaultValue(
ImageLayout
.Tile)]
963
public virtual
ImageLayout
BackgroundImageLayout
965
get => Properties.GetValueOrDefault(s_backgroundImageLayoutProperty,
ImageLayout
.Tile);
976
if (value is
ImageLayout
.Center or
ImageLayout
.Zoom or
ImageLayout
.Stretch)
987
Properties.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue:
ImageLayout
.Tile);
8173
if (!renderColorTransparent && BackgroundImageLayout ==
ImageLayout
.Tile && imageIsTransparent)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
277
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1042
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
160
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\Labels\Label.cs (1)
187
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
183
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ListView\ListView.cs (1)
361
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
224
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
156
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
341
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
196
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
139
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
211
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
327
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
95
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
123
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
76
[DefaultValue(
ImageLayout
.Tile)]
79
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
489
[DefaultValue(
ImageLayout
.Tile)]
492
public virtual
ImageLayout
BackgroundImageLayout
494
get => Properties.GetValueOrDefault(s_backgroundImageLayoutProperty,
ImageLayout
.Tile);
498
if (Properties.AddOrRemoveValue(s_backgroundImageLayoutProperty, value, defaultValue:
ImageLayout
.Tile) != value)
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
61
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
42
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
65
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
129
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
229
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGrid.cs (1)
70
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.cs (1)
49
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.cs (1)
69
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
159
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1303
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
205
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\MDI\MDIClient.cs (2)
58
public override
ImageLayout
BackgroundImageLayout
65
ImageLayout
imageLayout = base.BackgroundImageLayout;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
467
public override
ImageLayout
BackgroundImageLayout
System\Windows\Forms\Rendering\ControlPaint.cs (11)
98
internal static Rectangle CalculateBackgroundImageRectangle(Rectangle bounds, Size imageSize,
ImageLayout
imageLayout)
104
case
ImageLayout
.Stretch:
108
case
ImageLayout
.None:
112
case
ImageLayout
.Center:
127
case
ImageLayout
.Zoom:
443
ImageLayout
backgroundImageLayout,
451
if (backgroundImageLayout ==
ImageLayout
.Tile)
482
if (rightToLeft == RightToLeft.Yes && backgroundImageLayout ==
ImageLayout
.None)
498
if (backgroundImageLayout is
ImageLayout
.Stretch or
ImageLayout
.Zoom)
503
else if (backgroundImageLayout ==
ImageLayout
.None)
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
660
(BackgroundImageLayout ==
ImageLayout
.Zoom || BackgroundImageLayout ==
ImageLayout
.Stretch || BackgroundImageLayout ==
ImageLayout
.Center))
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
99
public override
ImageLayout
BackgroundImageLayout