Ticket S134710
Visible to All Users

XRPictureBox - Provide the capability to specify image alignment

created 15 years ago

Hi,
It would be useful to have an alignment property for this control. This property would be applicable to ImageSizeMode.Normal and ImageSizeMode.ZoomImage enumerations.
Thanks,
Stefan

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

Additional information:

To provide this functionality, we have added an ImageAlignment property of the DevExpress.XtraPrinting.ImageAlignment  enumeration type to the XRPictureBox report control.
This property has effect only if an XRPictureBox control's ImageSizeMode is set to ImageSizeMode.NormalSizeMode.Squeeze or ImageSizeMode.ZoomImage.

    created 15 years ago (modified 13 years ago)

    Hi Stefan,
    We've examined this problem with our developers, and decided to not implement this suggestion at this time.
    You can accomplish this task by using the XRPanel control. Please review the attached project.
    Thanks,
    Andrew

      Comments (2)

        Hi Andrew,
        Thank you for your reply. However, I failed to see how to accomplish the alignment in your sample. Say I wished to right align the contents in a picture box having the zoom sizing?
        Thanks,
        Stefan

        DevExpress Support Team 15 years ago

          Hi Stefan,
          For this scenario, you simply need to get the image size, adjust the height or width of a control based on ratio between size of a control and image.
          Then, shift it, if the height ratio or bigger than the width ratio.
          Thanks,
          Andrew

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.