def GetExpandCollapsePattern(self) -> ExpandCollapsePattern:
return self.GetPattern(PatternId.ExpandCollapsePattern)<EOL>
Return `ExpandCollapsePattern` if it supports the pattern else None(Must support according to MSDN).