How to raise the rectangle extrudedHeight

How to raise the rectangle extrudedHeight?I want to pull up the height by moving the points,but it’s always inaccurate.Can someone tell me how to solve it, and it would be nice if I could show the code.Thank you very much!
image

@Mirror-Yu

You can always share code by sending a sandcastle demo. You can also add code snippets to posts in the community forum.

Based on the information that you provided, extrudedHeight is the correct tool to use for your application. Here is a sandcastle demo that uses extrudedHeight to extrude a polygon based upon a numeric value. See the code related to Custom styling.

In addition, we see that RectangleGraphics has the property extrudedHeight.

Please let me know if you have any questions or concerns.

-Sam