CosPdfDictionary.TryGetValue
CosPdfDictionary.TryGetValue 方法
用于访问简单数据类型,如字符串、名称、布尔值、数字。对于其他类型返回 null。
public bool TryGetValue(string key, out ICosPdfPrimitive value)
| 参数 | 类型 | 描述 |
|---|---|---|
| key | String | 键值 |
| value | ICosPdfPrimitive& | 返回 ICosPdfPrimitive 对于键或 null。 |
返回值
如果 ICosPdfPrimitive 是字符串、名称、布尔值、数字,则返回 true。对于所有其他类型返回 false。