AddAttributeUpdate() public method

public AddAttributeUpdate ( string ID, string name, object value ) : void
ID string
name string
value object
return void
コード例 #1
0
ファイル: SvgIdManager.cs プロジェクト: yousafgill/Posh
 //any atrribute changed
 void element_AttributeChanged(object sender, AttributeEventArgs e)
 {
     //setting "inserBeforeID" should not trigger an attributeupdate
     //it is specially used for adding elements at a specific place in the DOM
     if (e.Attribute != "insertBeforeID")
     {
         var elem = sender as SvgElement;
         var val  = TypeDescriptor.GetConverter(e.Value).ConvertToString(null, CultureInfo.InvariantCulture, e.Value);
         //System.Diagnostics.Debug.WriteLine(elem.ID + " " + e.Attribute + " " + val);
         RemoteContext.AddAttributeUpdate((sender as SvgElement).ID, e.Attribute, e.Value);
     }
 }