C# Class previewer.PreviewBox

ファイルを表示 Open project: smitec/AutocadPreviewBox Class Usage Examples

Public Properties

Property Type Description
pictureBox1 System.Windows.Forms.PictureBox

Public Methods

Method Description
PreviewBox ( ) : System

Preview Box User Control

assign_image ( System newImage, bool resize = false ) : void
get_image_of_file ( string filename ) : Bitmap
load_file_preview ( string filename, bool resize = false ) : void

Load a dwg preview into the control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

PreviewBox_Resize ( object sender, EventArgs e ) : void
UserControl1_Load ( object sender, EventArgs e ) : void

on load method

pictureBox1_Click ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

PreviewBox() public method

Preview Box User Control
public PreviewBox ( ) : System
return System

assign_image() public method

public assign_image ( System newImage, bool resize = false ) : void
newImage System
resize bool
return void

get_image_of_file() public method

public get_image_of_file ( string filename ) : Bitmap
filename string
return System.Drawing.Bitmap

load_file_preview() public method

Load a dwg preview into the control.
public load_file_preview ( string filename, bool resize = false ) : void
filename string Path to the .dwg file
resize bool Should the box resize to the new image
return void

Property Details

pictureBox1 public_oe property

public System.Windows.Forms.PictureBox pictureBox1
return System.Windows.Forms.PictureBox