CSJ2K.Color.ColorSpace.indent C# (CSharp) Метод

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

Indent a String that contains newlines.
public static indent ( System ident, System instr ) : System.String
ident System
instr System
Результат System.String
        public static System.String indent(System.String ident, System.Text.StringBuilder instr)
        {
            return indent(ident, instr.ToString());
        }

Usage Example

Пример #1
0
        /// <summary> Return an appropriate String representation of this Resampler instance.</summary>
        public override System.String ToString()
        {
            System.Text.StringBuilder rep  = new System.Text.StringBuilder("[Resampler: ncomps= " + ncomps);
            System.Text.StringBuilder body = new System.Text.StringBuilder("  ");
            for (int i = 0; i < ncomps; ++i)
            {
                body.Append(eol);
                body.Append("comp[");
                body.Append(i);
                body.Append("] xscale= ");
                body.Append(imgdatasrc.getCompSubsX(i));
                body.Append(", yscale= ");
                body.Append(imgdatasrc.getCompSubsY(i));
            }

            rep.Append(ColorSpace.indent("  ", body));
            return(rep.Append("]").ToString());
        }
All Usage Examples Of CSJ2K.Color.ColorSpace::indent