Height

HorizontalRuleFormat.Height property

Yatay kuralın yüksekliğini alır veya ayarlar.

public double Height { get; set; }

istisnalar

istisnaşart
ArgumentOutOfRangeExceptionBağımsız değişken geçerli değerler aralığının dışında olduğunda atar.

Notlar

Bu, kısayolHeight mülk.

Geçerli değerler 0 ila 1584 (dahil) arasındadır.

Varsayılan değer 1,5’tir.

Örnekler

Yatay kural şeklinin nasıl ekleneceğini ve biçimlendirmesinin nasıl özelleştirileceğini gösterir.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertHorizontalRule();

HorizontalRuleFormat horizontalRuleFormat = shape.HorizontalRuleFormat;
horizontalRuleFormat.Alignment = HorizontalRuleAlignment.Center;
horizontalRuleFormat.WidthPercent = 70;
horizontalRuleFormat.Height = 3;
horizontalRuleFormat.Color = Color.Blue;
horizontalRuleFormat.NoShade = true;

Assert.True(shape.IsHorizontalRule);
Assert.True(shape.HorizontalRuleFormat.NoShade);

Ayrıca bakınız