Uredi

Deli z drugimi prek


PrintPreviewDialog.TransparencyKey Property

Definition

Gets or sets the color that will represent transparent areas of the form.

public:
 property System::Drawing::Color TransparencyKey { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Color TransparencyKey { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.TransparencyKey : System.Drawing.Color with get, set
Public Property TransparencyKey As Color

Property Value

A Color that represents the color to display transparently on the form.

Attributes

Remarks

This property is not relevant for this class.

When the TransparencyKey property is assigned a Color, the areas of the form that have the same BackColor will be displayed transparently. Any mouse actions, such as the click of the mouse, that are performed on the transparent areas of the form will be transferred to the windows below the transparent area. For example, if the client region of a form is made transparent, clicking the mouse on that area will send the event notification of the click to any window that is below it. If the color assigned to the TransparencyKey property is the same as any controls on the form, they also will be displayed transparently. For example, if you have a Button control on a form that has its TransparencyKey property set to Control, the control will be displayed transparently unless the BackColor property of the Button control is changed to a different color.

Applies to