Exemple #1
0
 public override String ToString()
 {
     System.Windows.Media.Brush c = colorWordType;
     return("Pictogram: " + "\r\n\tIndice: " + index + "\r\n\tImagen: " + image + "\r\n\tTexto a leer: " + textToRead + "\r\n\tSonido: " + sound + "\r\n\tPalabra: " + word + "\r\n\tTipo de palabra: " + colorWordType.ToString());
 }
Exemple #2
0
 /// <summary>
 /// 将mediaColor转换成Revit Color
 /// </summary>
 /// <param name="colorBrush"></param>
 /// <returns></returns>
 public static Autodesk.Revit.DB.Color TransToRevitColor(System.Windows.Media.Brush colorBrush)
 {
     Autodesk.Revit.DB.Color    revitColor;
     System.Windows.Media.Color mediaColor = (System.Windows.Media.Color)
                                             System.Windows.Media.ColorConverter.ConvertFromString(colorBrush.ToString());
     revitColor = new Autodesk.Revit.DB.Color(mediaColor.R, mediaColor.G, mediaColor.B);
     return(revitColor);
 }