CardViewItem
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
public CardViewItem()
Properties
Gets the card field.
[Browsable(false)]
public ListViewDetailColumn CardField { get; protected set; }
Implements:
Gets the editor label item.
public CardViewEditorItem EditorItem { get; }
Gets or sets the name of field associated with this item.
[Browsable(true)]
[TypeConverter(typeof(CardViewFieldNameTypeConverter))]
public string FieldName { get; set; }
Implements:
Gets or sets the fixed size of the text part which will be used when TextSizeMode is set to fixed.
[Browsable(true)]
public int TextFixedSize { get; set; }
Gets or sets the maximum size of the text part.
[Browsable(true)]
public int TextMaxSize { get; set; }
Gets or sets the minimum size of the text part.
[Browsable(true)]
public int TextMinSize { get; set; }
Gets or sets the position of the text of the item.
[Browsable(true)]
public virtual LayoutItemTextPosition TextPosition { get; set; }
Gets or sets the proportional size of the text part which will be used when TextSizeMode is set to proportional.
[Browsable(true)]
public float TextProportionalSize { get; set; }
Gets or sets the way in which the text part will be sized - proportionally or fixed-size.
[Browsable(true)]
public LayoutItemTextSizeMode TextSizeMode { get; set; }
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Gets the rectangle in which the editor will be arranged.
protected virtual Rectangle GetEditorItemRectangle(RectangleF clientRect)
The client area of the item.
Returns:The arrange rectangle of the editor.
protected virtual RectangleF GetEditorSize(SizeF availableSize)
Gets the rectangle in which the text part will be arranged.
protected virtual RectangleF GetTextRectangle(RectangleF clientRect)
The client area of the item.
Returns:The arrange rectangle of the text part.
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
protected virtual void OnColumnPropertyChanged(object sender, PropertyChangedEventArgs e)
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
The PropertyChangedEventArgs containing the property change information.
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
public virtual void Synchronize()
Implements: