protected override void ProcessRecord()
        {
            var dic = this.client.CustomProp.Get(this.Shapes);

            if (this.GetCells)
            {
                this.WriteObject(dic);
                return;
            }

            foreach (var shape_propdic_pair in dic)
            {
                var shape = shape_propdic_pair.Key;
                var propdic = shape_propdic_pair.Value;
                int shape_id = shape.ID;
                foreach (var propname_propcells_pair in propdic)
                {
                    string propname = propname_propcells_pair.Key;
                    var propcells = propname_propcells_pair.Value;
                    var cpf = new CustomPropertyValues(shape_id, propname, propcells);
                    this.WriteObject(cpf);
                }
            }
        }
Ejemplo n.º 2
0
        protected override void ProcessRecord()
        {
            var dic = this.client.CustomProp.Get(this.Shapes);

            if (this.GetCells)
            {
                this.WriteObject(dic);
                return;
            }

            foreach (var shape_propdic_pair in dic)
            {
                var shape    = shape_propdic_pair.Key;
                var propdic  = shape_propdic_pair.Value;
                int shape_id = shape.ID;
                foreach (var propname_propcells_pair in propdic)
                {
                    string propname  = propname_propcells_pair.Key;
                    var    propcells = propname_propcells_pair.Value;
                    var    cpf       = new CustomPropertyValues(shape_id, propname, propcells);
                    this.WriteObject(cpf);
                }
            }
        }