## TypeInfo::IsInstanceOfType method


确定指定对象是否是当前类型的实例。

```cpp
bool System::TypeInfo::IsInstanceOfType(const SharedPtr<Object> &obj) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | 要与当前类型比较的对象 |

### ReturnValue

如果当前类型在对象 obj 所代表的继承层次结构中，则为 true

## 另见

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [TypeInfo](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
