-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the properties of width and height in the ExcelDrawing class #1014
Comments
Depending on the type Anchor type (the EditAs property) of you can use the |
Thanks you. After your comments I tried and could solve the problem with this:
The only thing I noticed is that the inputs RowOffsetPixels and ColumnOffsetPixels of the function SetPosition if they are negative and grater than the row height or column width, they can be in a row less than the initial row or column. But If they are positive and grater than the row height or column width, they only go to the inital row +1 and initial column +1. |
You can also use the |
Yes but when I tried to use The size of the imagen change. My idea was to be in that area without changing the size and to be in the middle. |
I have a excel template like this:
![image](https://private-user-images.githubusercontent.com/52248775/260829199-adad3e34-33e5-4cfc-8158-548d463e1f15.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNzkwMzEsIm5iZiI6MTcyMDA3ODczMSwicGF0aCI6Ii81MjI0ODc3NS8yNjA4MjkxOTktYWRhZDNlMzQtMzNlNS00Y2ZjLTgxNTgtNTQ4ZDQ2M2UxZjE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA0VDA3Mzg1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0YTkxMDY5MGRmZjdiODUxYmEzZjE0ZjAwNzI4NzdhZTUwNDA1OTAyNGIwOWM2MWVlMzhiMDg1ZjFkOTQyOGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YC2KyGbC-SdtJGMoletLAsJBocwXcEyvBGap1qB7eVc)
And I want to set the position of one of these images in the red rectangle. The images can have different sizes, but the width of the column is constant, so if I can know the width and height (implement the properties of these variables) of the drawing I can do this.
Or there is another way to to this?
The text was updated successfully, but these errors were encountered: