public void SetType(EpubV3Vocabulary typeStyle) { if (!_typeStyles.Contains(typeStyle)) { _typeStyles.Add(typeStyle); } }
public void Remove(EpubV3Vocabulary typeStyle) { if (_typeStyles.Contains(typeStyle)) { _typeStyles.Remove(typeStyle); } }
public void Remove(EpubV3Vocabulary typeStyle) { if (_typeStyles.Contains(typeStyle)) { _typeStyles.Remove(typeStyle); } }
public void SetType(EpubV3Vocabulary typeStyle) { if (!_typeStyles.Contains(typeStyle)) { _typeStyles.Add(typeStyle); } }
public static string ConvertTypeToAttributeText(EpubV3Vocabulary type) { if (!EPubTypesCache.ContainsKey(type)) { var fieldInfo = type.GetType().GetField(type.ToString()); var attributes = (Attribute[]) fieldInfo.GetCustomAttributes(typeof (SerializationNameAttribute), false); if (attributes.Length == 0) { throw new InvalidEnumArgumentException("type", (int) type, typeof (EpubV3Vocabulary)); } EPubTypesCache.Add(type,((SerializationNameAttribute)attributes[0]).Name); } return EPubTypesCache[type]; }
public static string ConvertTypeToAttributeText(EpubV3Vocabulary type) { if (!EPubTypesCache.ContainsKey(type)) { var fieldInfo = type.GetType().GetField(type.ToString()); var attributes = (Attribute[]) fieldInfo.GetCustomAttributes(typeof(SerializationNameAttribute), false); if (attributes.Length == 0) { throw new InvalidEnumArgumentException("type", (int)type, typeof(EpubV3Vocabulary)); } EPubTypesCache.Add(type, ((SerializationNameAttribute)attributes[0]).Name); } return(EPubTypesCache[type]); }
public bool IsOfType(EpubV3Vocabulary typeStyle) { return _typeStyles.Contains(typeStyle); }
public bool IsDocumentOfType(EpubV3Vocabulary type) { return(_epubAttributeTypes.IsOfType(type)); }
public void SetDocumentEpubType(EpubV3Vocabulary type) { _epubAttributeTypes.SetType(type); _durty = true; }
public void SetDocumentEpubType(EpubV3Vocabulary type) { _epubAttributeTypes.SetType(type); _durty = true; }
public bool IsDocumentOfType(EpubV3Vocabulary type) { return _epubAttributeTypes.IsOfType(type); }
public bool IsOfType(EpubV3Vocabulary typeStyle) { return(_typeStyles.Contains(typeStyle)); }