TAILIEUCHUNG - Manning Windows Forms Programming (phần 10)

Tham khảo tài liệu 'manning windows forms programming (phần 10)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | with the parent toolbar. Image lists are used by a number of Windows Forms controls to manage the images displayed or available within the control. As a result we will hold off on creating our toolbar buttons until section in order to take a look at this rather important construct. Image lists There are a number of controls that require one or more images in order to display their contents. Often the requirement is for a set of images rather than a single image. For example the set of toolbar buttons in a ToolBar object or the images required for a set of Button controls on a form. The Windows Forms namespace provides the ImageList class for managing such collections of images. As we shall see in chapters 14 and 15 this class is also utilized by the ListView and TreeView controls. This section examines the ImageList class in some detail and creates a set of images for use in the toolbar we created in the previous section. .NET Table ImageList class The ImageList class represents a collection of Image objects. Typically this class is used to support one or more Windows Forms controls in the management and display of images within the control. Classes that use image lists include the Button ToolBar ListView and TreeView classes. This class is part of the namespace and inherits from the class. Public Properties ColorDepth Handle HandleCreated Images ImageSize ImageStream TransparentColor Gets or sets the color depth for images in the list. Gets the Win32 handle for the image list. Gets whether the underlying Win32 handle has been created. Gets the collection of images for this image list. Use this collection to add remove and otherwise manage the list s images programmatically. Gets or sets the size for images in the list. Gets or sets the ImageListStreamer object to associate with this list. This object manages the data associated with the list. Gets or sets the color to treat as transparent in the .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.