in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Current Y Position after RenderRTF

Last post 02-28-2008 8:14 AM by alexanderm. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-28-2008 5:15 AM

    Current Y Position after RenderRTF

     Hi Dima,

    Where can I get the Information of the acutal y - position of the current page after:

            Dim rrtf As New RenderRichText
            rrtf.SplitHorzBehavior = True
            rrtf.RepeatBordersVert = True
            rrtf.X = uLeft
            rrtf.Y = uTop
            rrtf.Width = uWidth
            rrtf.Rtf = sRTFString
            m_C1DOC.Body.Children.Add(rrtf)

     After a pagebreak I need this value to calculate the Position of further rendercontrols. I try the last Version of C1VSPreview.

    Thanks for help, regards 

  • 02-28-2008 8:14 AM In reply to

    Re: Current Y Position after RenderRTF

     

    You can use properties of C1PrintDocument:

            /// Gets the current generating area of page, returns null if document in not generating state.
            public PageAreaBase CurrentPageArea { get; }

            /// An amount of available vertical space in the block flow in the currently
            /// generating page area, value specified in the ResolvedUnit units.
            /// Returns -1 if document in not generating state.
            public double AvailableBlockFlowHeight { get; }

            /// An amount of available horizontal space in the block flow in the currently
            /// generating page area, value specified in the ResolvedUnit units.
            /// Returns -1 if document in not generating state.
            public double AvailableBlockFlowWidth { get; }

    I have attached small sample

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.