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