Control.BackgroundImageLayout Control.BackgroundImageLayout Control.BackgroundImageLayout Control.BackgroundImageLayout Property

定义

获取或设置在 ImageLayout 枚举中定义的背景图像布局。Gets or sets the background image layout as defined in the ImageLayout enumeration.

public:
 virtual property System::Windows::Forms::ImageLayout BackgroundImageLayout { System::Windows::Forms::ImageLayout get(); void set(System::Windows::Forms::ImageLayout value); };
public virtual System.Windows.Forms.ImageLayout BackgroundImageLayout { get; set; }
member this.BackgroundImageLayout : System.Windows.Forms.ImageLayout with get, set
Public Overridable Property BackgroundImageLayout As ImageLayout

属性值

ImageLayout 的值(CenterNoneStretchTileZoom)之一。One of the values of ImageLayout (Center , None, Stretch, Tile, or Zoom). 默认值为 TileTile is the default value.

异常

指定的枚举值不存在。The specified enumeration value does not exist.

注解

BackgroundImageLayout使用属性可指定放置在控件上的图像的位置和行为。Use the BackgroundImageLayout property to specify the position and behavior of an image you have placed onto a control. BackgroundImageLayout仅在设置了BackgroundImage属性时才会生效。BackgroundImageLayout takes effect only if the BackgroundImage property is set.

如果将设置BackgroundImageLayout为以外的内容Tile,则可以提高大型映像的性能。You can increase performance for large images if you set BackgroundImageLayout to something other than Tile.

适用于

另请参阅