///<summary> /// This method is called by the parser when text appears under the tag in markup. /// As default Styles do not support text, calling this method has no effect. ///</summary> ///<param name="text"> /// Text to add as a child. ///</param> void IAddChild.AddText(string text) { // Verify Context Access VerifyAccess(); XamlSerializerUtil.ThrowIfNonWhiteSpaceInAddText(text, this); }
/// <summary>Adds a text string as a child of this <see cref="T:System.Windows.Data.XmlNamespaceMappingCollection" /> object.</summary> /// <param name="text">The text string to add as a child.</param> /// <exception cref="T:System.ArgumentNullException">If <paramref name="text" /> is <see langword="null" />.</exception> // Token: 0x06001CBC RID: 7356 RVA: 0x00086782 File Offset: 0x00084982 protected virtual void AddText(string text) { if (text == null) { throw new ArgumentNullException("text"); } XamlSerializerUtil.ThrowIfNonWhiteSpaceInAddText(text, this); }
///<summary> /// This method is called by the parser when text appears under the tag in markup. /// As default Panels do not support text, calling this method has no effect. ///</summary> ///<param name="text"> /// Text to add as a child. ///</param> void IAddChild.AddText(string text) { XamlSerializerUtil.ThrowIfNonWhiteSpaceInAddText(text, this); }
/// <summary>This method is not supported and results in an exception.</summary> /// <param name="text">This parameter is not used.</param> // Token: 0x060003EA RID: 1002 RVA: 0x0000B31C File Offset: 0x0000951C protected virtual void AddText(string text) { XamlSerializerUtil.ThrowIfNonWhiteSpaceInAddText(text, this); }
void IAddChild.AddText(string text) { // The only text we accept is whitespace, which we ignore. XamlSerializerUtil.ThrowIfNonWhiteSpaceInAddText(text, this); }