public IElementContainer GetParent( bool topMost )
Public Function GetParent( _ Optional ByVal topMost As Boolean _ ) As IElementContainer
Parameters
- topMost
- If true then the top most parent or 'container' is returned
public IElementContainer GetParent( bool topMost )
Public Function GetParent( _ Optional ByVal topMost As Boolean _ ) As IElementContainer
//check the parent var parent = groupElement.Elements.First().GetParent();//will be the group element //top-most parent var top_most = groupElement.Elements.First().GetParent(true);//will be the GraphicsLayer
//check the parent var parent = groupElement.Elements.First().GetParent();//will be the group element //top-most parent //will be a GraphicsLayer or Layout var top_most = groupElement.Elements.First().GetParent(true);
Target Platforms: Windows 11, Windows 10