Novacode.DocX.getMirrorMargins C# (CSharp) Method

getMirrorMargins() private method

Mirror Margins boolean value. True when margins has to be mirrored.
private getMirrorMargins ( System.Xml.Linq.XName name ) : bool
name System.Xml.Linq.XName
return bool
        internal bool getMirrorMargins(XName name)
        {
            XElement body = mainDoc.Root.Element(XName.Get("body", DocX.w.NamespaceName));
            XElement sectPr = body.Element(XName.Get("sectPr", DocX.w.NamespaceName));
            if (sectPr != null)
            {
                XElement MarMirror = sectPr.Element(XName.Get("mirrorMargins", DocX.w.NamespaceName));
                if (MarMirror != null)
                {
                    return true;
                }
            }
            return false;
        }