Axiom.Overlays.OverlayElement.CopyParametersTo C# (CSharp) Method

CopyParametersTo() public method

public CopyParametersTo ( OverlayElement instance ) : void
instance OverlayElement
return void
		public void CopyParametersTo( OverlayElement instance )
		{
			foreach ( IPropertyCommand command in Commands )
			{
				string srcValue = command.Get( this );
				command.Set( instance, srcValue );
			}
		}

Usage Example

Example #1
0
		/// <summary>
		///    Copys data from the template element to this element to clone it.
		/// </summary>
		/// <param name="template"></param>
		/// <returns></returns>
		public virtual void CopyFromTemplate( OverlayElement template )
		{
			template.CopyParametersTo( this );
			sourceTemplate = template;
		}