# Ellipse 椭圆绘制组件。 ## 子组件 无 ## 接口 ellipse\(options?: \{width: Lenght, height: Length\}\) - 参数

参数名

参数类型

必填

默认值

参数描述

options

Object

-

options参数说明

- options参数说明

参数名

参数类型

必填

默认值

参数描述

width

Length

-

宽度。

height

Length

-

高度。

## 属性

参数名称

参数类型

默认值

必填

参数描述

width

Length

0

椭圆所在矩形的宽度。

height

Length

0

椭圆所在矩形的高度。

## 示例 ``` @Entry @Component struct EllipseExample { build() { Flex({ justifyContent: FlexAlign.SpaceAround }) { // 在一个 150 * 70 的矩形框中绘制一个椭圆 Ellipse({ width: 150, height: 80 }) // 在一个 150 * 70 的矩形框中绘制一个椭圆 Ellipse().width(150).height(80) }.width('100%').margin({ top: 5 }) } } ``` ![](figures/ellipse-18.png)