Return getMarginAttribute(XName.Get( "top", DocX.w.NamespaceName)) ![]() Word internally writes docx using units = 1/20th of a point. 'INSTANT VB NOTE: The local variable bookmarks was renamed since Visual Basic will not allow local variables with the same name as their enclosing function or property:ĭim bookmarks_Renamed As New BookmarkCollection()įor Each paragraph As Paragraph In Paragraphsīookmarks_Renamed.AddRange(paragraph.GetBookmarks()) Public ReadOnly Property Bookmarks() As BookmarkCollection ![]() Friend Shared customPropertiesSchema As XNamespace = ""įriend Shared customVTypesSchema As XNamespace = ""įriend Shared v As XNamespace = "urn:schemas-microsoft-com:vml"įriend Function getMarginAttribute( ByVal name As XName) As Singleĭim body As XElement = (XName.Get( "body", DocX.w.NamespaceName))ĭim sectPr As XElement = body.Element(XName.Get( "sectPr", DocX.w.NamespaceName))ĭim pgMar As XElement = sectPr.Element(XName.Get( "pgMar", DocX.w.NamespaceName))ĭim top As XAttribute = pgMar.Attribute(name)įriend Sub setMarginAttribute( ByVal xName As XName, ByVal value As Single )ĭim top As XAttribute = pgMar.Attribute(xName)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |