IfNullOrEmpty() публичный статический Метод

public static IfNullOrEmpty ( string paramName, [ value ) : void
paramName string
value [
Результат void
Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImageProfile"/> class.
 /// </summary>
 /// <param name="name">The name of the profile.</param>
 protected ImageProfile(string name)
 {
     Throw.IfNullOrEmpty(nameof(name), name);
     Name = name;
 }
Пример #2
0
        /// <summary>
        /// Returns the value of a format-specific option.
        /// </summary>
        /// <param name="name">The name of the option.</param>
        /// <returns>The value of a format-specific option.</returns>
        public string GetDefine(string name)
        {
            Throw.IfNullOrEmpty(nameof(name), name);

            return(GetOption(name));
        }
Пример #3
0
        public void Set(int x, int y, QuantumType[] value)
        {
            Throw.IfNullOrEmpty(nameof(value), value);

            SetPixel(x, y, value);
        }
Пример #4
0
        /// <summary>
        /// Returns the value of a format-specific option.
        /// </summary>
        /// <param name="format">The format to get the option for.</param>
        /// <param name="name">The name of the option.</param>
        /// <returns>The value of a format-specific option.</returns>
        public string GetDefine(MagickFormat format, string name)
        {
            Throw.IfNullOrEmpty(nameof(name), name);

            return(GetOption(ParseDefine(format, name)));
        }
Пример #5
0
        ///<summary>
        /// Returns the value of the variable with the specified name.
        ///</summary>
        ///<param name="name">The name of the variable</param>
        public object Get(string name)
        {
            Throw.IfNullOrEmpty("name", name);

            return(_Variables[name]);
        }
Пример #6
0
        /// <summary>
        /// Set the path to the default font file.
        /// </summary>
        /// <param name="fileName">The file name to use at the default font file.</param>
        public static void SetDefaultFontFile(string fileName)
        {
            Throw.IfNullOrEmpty(nameof(fileName), fileName);

            NativeMagickNET.SetDefaultFontFile(fileName);
        }
Пример #7
0
        public override void SetPixel(int x, int y, QuantumType[] value)
        {
            Throw.IfNullOrEmpty(nameof(value), value);

            SetPixelPrivate(x, y, value);
        }
Пример #8
0
        ///<summary>
        /// Creates a new DrawableClipPath instance.
        ///</summary>
        ///<param name="clipPath">The ID of the clip path.</param>
        public DrawableClipPath(string clipPath)
        {
            Throw.IfNullOrEmpty("clipPath", clipPath);

            ClipPath = clipPath;
        }