CompositeActivityDesigner.TextRectangle Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan nilai persegi panjang deskripsi dalam koordinat logis.
protected:
virtual property System::Drawing::Rectangle TextRectangle { System::Drawing::Rectangle get(); };
protected override System.Drawing.Rectangle TextRectangle { get; }
member this.TextRectangle : System.Drawing.Rectangle
Protected Overrides ReadOnly Property TextRectangle As Rectangle
Nilai Properti
Nilai persegi panjang deskripsi dalam koordinat logis.
Contoh
Contoh berikut menunjukkan cara mengambil TextRectangle alih properti. Dalam contoh ini, TextRectangle dihitung menggunakan Batas CompositeActivityDesigner serta lokasi dan ukuran ImageRectangle.
protected override Rectangle TextRectangle
{
get
{
return new Rectangle(
this.Bounds.Left + 2,
this.ImageRectangle.Bottom,
this.Bounds.Width - 4,
this.Bounds.Height - this.ImageRectangle.Height - 1);
}
}
Protected Overrides ReadOnly Property TextRectangle() As Rectangle
Get
Return New Rectangle( _
Me.Bounds.Left + 2, _
Me.ImageRectangle.Bottom, _
Me.Bounds.Width - 4, _
Me.Bounds.Height - Me.ImageRectangle.Height - 1)
End Get
End Property
Keterangan
Gunakan untuk menentukan lokasi pada perancang tempat deskripsi teks akan ditampilkan.