XpsDocument.CreateVisualBrush method

Creates a new visual brush.

public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, 
    RectangleF viewport)
elementXpsContentElementThe XPS element (Canvas, Path or Glyphs) for Visual property od visual brush.
viewboxRectangleFThe position and dimensions of the brush’s source content.
viewportRectangleFThe region in the containing coordinate space of the prime brush tile that is (possibly repeatedly) applied to fill the region to which the brush is applied

Return Value

New visual brush.

See Also