Use the Clipped modifier to hide any content that extends beyond the layout bounds of the shape.
The Clipped modifier comes with the Antialiased property, which is a Boolean value that indicates whether the rendering system applies smoothing to the edges of the clipping rectangle.