/// <summary> /// Try to modify the shape style. /// </summary> /// <param name="style">Reference to shape style to apply</param> /// <returns> /// <para> /// A <see cref="BooleanResult"/> reference that contains the result of the operation, to check if the operation is correct, the <b>Success</b> /// property will be <b>true</b> and the <b>Value</b> property will contain the value; Otherwise, the the <b>Success</b> property /// will be false and the <b>Errors</b> property will contain the errors associated with the operation, if they have been filled in. /// </para> /// <para> /// The type of the return value is <see cref="BooleanResult"/>, which contains the operation result /// </para> /// </returns> public IResult SetShapeStyle(ShapeType style) { try { Shape.Style = style.AsEnumType <eShapeStyle>(); return(BooleanResult.SuccessResult); } catch (Exception e) { return(BooleanResult.FromException(e)); } }