ClassCardViewItem
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CardViewItem : LayoutControlItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ICardViewBoundItem
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLayoutControlItemBaseCardViewItem
Implements:
Inherited Members
Constructors
CardViewItem()
Declaration
public CardViewItem()
Properties
CardField
Gets the card field.
Declaration
[Browsable(false)]
public ListViewDetailColumn CardField { get; protected set; }
Property Value
Implements
EditorItem
Gets the editor label item.
Declaration
public CardViewEditorItem EditorItem { get; }
Property Value
FieldName
Gets or sets the name of field associated with this item.
Declaration
[Browsable(true)]
[TypeConverter(typeof(CardViewFieldNameTypeConverter))]
public string FieldName { get; set; }
Property Value
Implements
TextFixedSize
Gets or sets the fixed size of the text part which will be used when TextSizeMode is set to fixed.
Declaration
[Browsable(true)]
public int TextFixedSize { get; set; }
Property Value
TextMaxSize
Gets or sets the maximum size of the text part.
Declaration
[Browsable(true)]
public int TextMaxSize { get; set; }
Property Value
TextMinSize
Gets or sets the minimum size of the text part.
Declaration
[Browsable(true)]
public int TextMinSize { get; set; }
Property Value
TextPosition
Gets or sets the position of the text of the item.
Declaration
[Browsable(true)]
public virtual LayoutItemTextPosition TextPosition { get; set; }
Property Value
TextProportionalSize
Gets or sets the proportional size of the text part which will be used when TextSizeMode is set to proportional.
Declaration
[Browsable(true)]
public float TextProportionalSize { get; set; }
Property Value
TextSizeMode
Gets or sets the way in which the text part will be sized - proportionally or fixed-size.
Declaration
[Browsable(true)]
public LayoutItemTextSizeMode TextSizeMode { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateEditorItem()
Declaration
protected virtual CardViewEditorItem CreateEditorItem()
Returns
GetEditorItemRectangle(RectangleF)
Gets the rectangle in which the editor will be arranged.
Declaration
protected virtual Rectangle GetEditorItemRectangle(RectangleF clientRect)
Parameters
clientRect
The client area of the item.
Returns
The arrange rectangle of the editor.
GetEditorSize(SizeF)
Declaration
protected virtual RectangleF GetEditorSize(SizeF availableSize)
Parameters
availableSize
Returns
GetTextRectangle(RectangleF)
Gets the rectangle in which the text part will be arranged.
Declaration
protected virtual RectangleF GetTextRectangle(RectangleF clientRect)
Parameters
clientRect
The client area of the item.
Returns
The arrange rectangle of the text part.
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnColumnPropertyChanged(object, PropertyChangedEventArgs)
Declaration
protected virtual void OnColumnPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
sender
e
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
The PropertyChangedEventArgs containing the property change information.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
Synchronize()
Declaration
public virtual void Synchronize()
Implements