SplitContainer.Orientation Özellik

Tanım

Panellerin yatay veya dikey yönlendirmesini SplitContainer gösteren bir değer alır veya ayarlar.

C#
public System.Windows.Forms.Orientation Orientation { get; set; }

Özellik Değeri

Orientation

Değerlerden Orientation biri. Varsayılan değer: Vertical.

Özel durumlar

Atanan değer değerlerden biri Orientation değildir.

Örnekler

Aşağıdaki kod örneği, üst ve alt panelleri denetimler içeren ListView yatay bir bölücü gösterir. Yatay bölücülerin diğer temel özellikleri de gösterilir. Bu örnek, sınıfı için SplitContainer sağlanan daha büyük bir örneğin parçasıdır.

C#
// Basic SplitContainer properties.
// This is a horizontal splitter whose top and bottom panels are ListView controls. The top panel is fixed.
splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
// The top panel remains the same size when the form is resized.
splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
splitContainer2.Location = new System.Drawing.Point(0, 0);
splitContainer2.Name = "splitContainer2";
// Create the horizontal splitter.
splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
splitContainer2.Size = new System.Drawing.Size(207, 273);
splitContainer2.SplitterDistance = 125;
splitContainer2.SplitterWidth = 6;
// splitContainer2 is the third control in the tab order.
splitContainer2.TabIndex = 2;
splitContainer2.Text = "splitContainer2";

Açıklamalar

Orientation özelliğini kullanarak öğesini dikeyden yataya veya yataydan dikeye değiştirinSplitContainer.

Şunlara uygulanır

Ürün Sürümler
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

Ayrıca bkz.