C# Класс previewer.PreviewBox

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
pictureBox1 System.Windows.Forms.PictureBox

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

PreviewBox() публичный Метод

Preview Box User Control
public PreviewBox ( ) : System
Результат System

assign_image() публичный Метод

public assign_image ( System newImage, bool resize = false ) : void
newImage System
resize bool
Результат void

get_image_of_file() публичный Метод

public get_image_of_file ( string filename ) : Bitmap
filename string
Результат System.Drawing.Bitmap

load_file_preview() публичный Метод

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
Результат void

Описание свойств

pictureBox1 публичное свойство

public System.Windows.Forms.PictureBox pictureBox1
Результат System.Windows.Forms.PictureBox