Beispiel #1
0
 /// <summary>
 /// Creates an <see cref="IReadableColumnProxy"/> from a given column.
 /// </summary>
 /// <param name="column">The column.</param>
 /// <returns>An instance of <see cref="IReadableColumnProxy"/>. The type of instance returned depends on the type of the provided column (e.g. whether the column is part of the document or not).</returns>
 public static IReadableColumnProxy FromColumn(IReadableColumn column)
 {
     if (column is ITransformedReadableColumn)
     {
         var tcolumn = (ITransformedReadableColumn)column;
         if (tcolumn.UnderlyingReadableColumn is IDocumentLeafNode)
         {
             return(TransformedReadableColumnProxy.FromColumn(tcolumn));
         }
         else
         {
             return(TransformedReadableColumnProxyForStandaloneColumns.FromColumn(tcolumn));
         }
     }
     else
     {
         if (column is IDocumentLeafNode)
         {
             return(ReadableColumnProxy.FromColumn(column));
         }
         else
         {
             return(ReadableColumnProxyForStandaloneColumns.FromColumn(column));
         }
     }
 }
            public virtual object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ReadableColumnProxy s = o != null ? (ReadableColumnProxy)o : new ReadableColumnProxy();

                info.GetBaseValueEmbedded(s, typeof(DocNodeProxy), parent); // deserialize the base class

                return(s);
            }
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="from">Object to clone from.</param>
 public ReadableColumnProxy(ReadableColumnProxy from)
     : base(from)
 {
 }
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="from">Object to clone from.</param>
 public ReadableColumnProxy(ReadableColumnProxy from)
   : base(from)
 {
 }
Beispiel #5
0
        public string GetName(int level)
        {
            string trans = _transformation.RepresentationAsOperator ?? _transformation.RepresentationAsFunction;

            return(trans + " " + ReadableColumnProxy.GetName(level, (IReadableColumn)base.DocumentObject, InternalDocumentPath));
        }