## TypeInfo::IsInstanceOfType method


Determines whether the specified object is an instance of the current type.

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


| Parameter | Type | Description |
| --- | --- | --- |
| obj | const SharedPtr\<Object\>\& | The object to compare with the current type |

### ReturnValue

true if the current type is in the inheritance hierarchy of the object represented by obj

## See Also

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