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