## Shape.HtmlText property

获取和设置该文本框中包含数据和一些格式的html字符串。

```csharp
public string HtmlText { get; set; }
```

### 例子

```csharp

[C#]
if(shape.HtmlText == null || shape.HtmlText == "")
    shape.HtmlText = "<Font Style="FONT-FAMILY: Calibri;FONT-SIZE: 11pt;COLOR: #0000ff;TEXT-ALIGN: left;">This is a <b>test</b>.</Font>";
```

### 也可以看看

* class [Shape](../../shape)
* 命名空间 [Aspose.Cells.Drawing](../../shape)
* 部件 [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
