Height

HorizontalRuleFormat.Height property

Получает или задает высоту горизонтальной линейки.

public double Height { get; set; }

Исключения

исключениеусловие
ArgumentOutOfRangeExceptionВыдает, когда аргумент выходит за пределы допустимого диапазона значений.

Примечания

Это ярлык дляHeight свойство.

Допустимые значения находятся в диапазоне от 0 до 1584 включительно.

Значение по умолчанию — 1,5.

Примеры

Показывает, как вставить фигуру горизонтальной линейки и настроить ее форматирование.

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);

Смотрите также