ImageField.GetFormattedAlternateText(Control) 方法
定义
将 DataAlternateTextFormatString 属性所指定的格式应用于包含在指定对象 Control 中的备用文本值。Applies the format specified by the DataAlternateTextFormatString property to the alternate text value contained in the specified Control object.
protected:
virtual System::String ^ GetFormattedAlternateText(System::Web::UI::Control ^ controlContainer);
protected virtual string GetFormattedAlternateText (System.Web.UI.Control controlContainer);
abstract member GetFormattedAlternateText : System.Web.UI.Control -> string
override this.GetFormattedAlternateText : System.Web.UI.Control -> string
Protected Overridable Function GetFormattedAlternateText (controlContainer As Control) As String
参数
- controlContainer
- Control
包含要转换的备用文本值的 Control。The Control that contains the alternate text value to transform.
返回
已转换的值。The transformed value.
注解
GetFormattedAlternateText方法是 ImageField 类用于将属性指定的格式应用于备用文本值的帮助器方法 DataImageUrlFormatString 。The GetFormattedAlternateText method is a helper method used by the ImageField class to apply the format specified by the DataImageUrlFormatString property to the alternate text value. 替换文本值包含在 Control 由参数指定的对象中 controlContainer 。The alternate text value is contained in the Control object specified by the controlContainer parameter.
继承者说明
扩展类时 ImageField ,可以重写此方法以执行自定义格式设置例程。When extending the ImageField class, you can override this method to perform a custom formatting routine.