Class PictureBox
public class PictureBox : Control, ICloneable
- Inheritance
-
objectPictureBox
- Implements
- Inherited Members
Constructors
PictureBox()
public PictureBox()
Properties
Alpha
The level of transparency from 0 (invisible) to 255 (solid)
public byte Alpha { get; set; }
Property Value
TextureFile
The file containing the texture for this picture box
public string TextureFile { get; set; }
Property Value
Remarks
Assigning the value this already has is a no-op, so scripts can set this on every frame without reloading the texture each time.
TextureFileValid
public bool TextureFileValid { get; }
Property Value
TextureLocation
The upper left corner of the area in the texture file to use
public Point TextureLocation { get; set; }
Property Value
TextureSize
The distance to the lower right corner of the area in the texture file to use
public Size TextureSize { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this instance.
public override Control Clone()
Returns
CloneFromTo(PictureBox, PictureBox)
Copies all members declared by PictureBox from one instance to another.
protected static void CloneFromTo(PictureBox from, PictureBox to)
Parameters
fromPictureBoxtoPictureBox
ClonePictureBox()
Creates a deep copy of this PictureBox instance.
public PictureBox ClonePictureBox()
Returns
- PictureBox
The new copy of the PictureBox.