menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PenSettings - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PenSettings

    Holds the settings to customize shapes and path(free hand drawing).

    Inheritance
    System.Object
    PenSettings
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.UI.Xaml.ImageEditor
    Assembly: Syncfusion.SfImageEditor.UWP.dll
    Syntax
    public class PenSettings : Object, INotifyPropertyChanged

    Constructors

    PenSettings()

    Gets or sets a new instance of the PenSettings class.

    Declaration
    public PenSettings()

    Properties

    Bounds

    Gets or sets bounds for the shapes.

    Declaration
    public Rect Bounds { get; set; }
    Property Value
    Type
    Windows.Foundation.Rect

    Color

    Gets or sets the stroke color of the pen.

    Declaration
    public Brush Color { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Media.Brush

    EnableDrag

    Gets or sets a value indicating whether shape can be dragged or not.

    Declaration
    public bool EnableDrag { get; set; }
    Property Value
    Type
    System.Boolean

    IsResizable

    Gets or sets a value that indicates whether to enable the resizing option for the shapes or not.

    Declaration
    public bool IsResizable { get; set; }
    Property Value
    Type
    System.Boolean

    Mode

    Gets or sets the mode of painting for the pen.

    Declaration
    public Mode Mode { get; set; }
    Property Value
    Type
    Mode

    Opacity

    Gets or sets the opacity of the pen stroke.

    Declaration
    public float Opacity { get; set; }
    Property Value
    Type
    System.Single

    PathStrokeWidth

    Gets or sets the stroke thickness for the path.

    Declaration
    public float PathStrokeWidth { get; set; }
    Property Value
    Type
    System.Single

    ShapeID

    Gets the unique ID of the shape.

    Declaration
    public int ShapeID { get; }
    Property Value
    Type
    System.Int32

    StrokeWidth

    Gets or sets the stroke thickness for the shapes / path.

    Declaration
    public float StrokeWidth { get; set; }
    Property Value
    Type
    System.Single

    Methods

    OnPropertyChanged(String)

    Method gets called when the property value gets changed.

    Declaration
    protected void OnPropertyChanged(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Events

    PropertyChanged

    Raised whenever a property gets changed.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved