Beispiel #1
0
        /// <override></override>
        protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
        {
            switch (propertyMapping.ShapePropertyId)
            {
            case PropertyIdText:
                Text = propertyMapping.GetString();
                break;

            case PropertyIdCharacterStyle:
                // assign private stylebecause if the style matches the template's style, it would not be assigned.
                CharacterStyle = propertyMapping.GetStyle() as ICharacterStyle;
                Invalidate();
                break;

            case PropertyIdParagraphStyle:
                // assign private stylebecause if the style matches the template's style, it would not be assigned.
                ParagraphStyle = propertyMapping.GetStyle() as IParagraphStyle;
                Invalidate();
                break;

            default:
                base.ProcessExecModelPropertyChange(propertyMapping);
                break;
            }
        }
Beispiel #2
0
        /// <override></override>
        protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
        {
            switch (propertyMapping.ShapePropertyId)
            {
            case PropertyIdAngle:
                Angle = propertyMapping.GetInteger();
                break;

            case PropertyIdFillStyle:
                // assign private stylebecause if the style matches the template's style, it would not be assigned.
                privateFillStyle = (IFillStyle)propertyMapping.GetStyle();
                Invalidate();
                break;

            default:
                base.ProcessExecModelPropertyChange(propertyMapping);
                break;
            }
        }
 /// <override></override>
 protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
 {
     switch (propertyMapping.ShapePropertyId) {
         case PropertyIdColumnBackgroundColorStyle:
             privateColumnBackgroundColorStyle = (propertyMapping.GetStyle() as IColorStyle);
             Invalidate();
             break;
         case PropertyIdColumnCharacterStyle:
             privateColumnCharacterStyle = (propertyMapping.GetStyle() as ICharacterStyle);
             InvalidateDrawCache();
             Invalidate();
             break;
         case PropertyIdColumnParagraphStyle:
             privateColumnParagraphStyle = (propertyMapping.GetStyle() as IParagraphStyle);
             InvalidateDrawCache();
             Invalidate();
             break;
         default:
             base.ProcessExecModelPropertyChange(propertyMapping);
             break;
     }
 }
Beispiel #4
0
 /// <override></override>
 protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
 {
     switch (propertyMapping.ShapePropertyId) {
         case PropertyIdAngle:
             Angle = propertyMapping.GetInteger();
             break;
         case PropertyIdFillStyle:
             // assign private stylebecause if the style matches the template's style, it would not be assigned.
             privateFillStyle = (IFillStyle)propertyMapping.GetStyle();
             Invalidate();
             break;
         default:
             base.ProcessExecModelPropertyChange(propertyMapping);
             break;
     }
 }
Beispiel #5
0
		/// <override></override>
		protected override void ProcessExecModelPropertyChange(IModelMapping propertyMapping)
		{
			switch (propertyMapping.ShapePropertyId) {
				case PropertyIdText:
					Text = propertyMapping.GetString();
					break;
				case PropertyIdCharacterStyle:
					// assign private stylebecause if the style matches the template's style, it would not be assigned.
					CharacterStyle = propertyMapping.GetStyle() as ICharacterStyle;
					Invalidate();
					break;
				case PropertyIdParagraphStyle:
					// assign private stylebecause if the style matches the template's style, it would not be assigned.
					ParagraphStyle = propertyMapping.GetStyle() as IParagraphStyle;
					Invalidate();
					break;
				default:
					base.ProcessExecModelPropertyChange(propertyMapping);
					break;
			}
		}