ClassRadDiagramItem
Abstract base implementation of the IDiagramItem interface.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public abstract class RadDiagramItem : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementRadDiagramItem
Derived Classes:
Implements:
Inherited Members
Constructors
RadDiagramItem()
Initializes a new instance of the RadDiagramItem class.
Declaration
protected RadDiagramItem()
Fields
AllowCopyProperty
Identifies the AllowCopy dependency property.
Declaration
public static readonly RadProperty AllowCopyProperty
Field Value
AllowCutProperty
Identifies the AllowCut dependency property.
Declaration
public static readonly RadProperty AllowCutProperty
Field Value
AllowDeleteProperty
Identifies the AllowDelete dependency property.
Declaration
public static readonly RadProperty AllowDeleteProperty
Field Value
AllowPasteProperty
Identifies the AllowPaste dependency property.
Declaration
public static readonly RadProperty AllowPasteProperty
Field Value
EditTemplateProperty
Identifies the EditTemplate dependency property.
Declaration
public static readonly RadProperty EditTemplateProperty
Field Value
EndEditEvent
Identifies the EndEdit routed event.
Declaration
public static readonly RoutedEvent EndEditEvent
Field Value
GroupProperty
Identifies the Group dependency property.
Declaration
public static readonly RadProperty GroupProperty
Field Value
IsConnectorsManipulationEnabledProperty
Identifies the IsConnectorsManipulationEnabled dependency property.
Declaration
public static readonly RadProperty IsConnectorsManipulationEnabledProperty
Field Value
IsDraggingEnabledProperty
Identifies the IsDraggingEnabled dependency property.
Declaration
public static readonly RadProperty IsDraggingEnabledProperty
Field Value
IsEditableProperty
Identifies the IsEditable dependency property.
Declaration
public static readonly RadProperty IsEditableProperty
Field Value
IsInEditModeProperty
Identifies the IsInEditMode dependency property.
Declaration
public static readonly RadProperty IsInEditModeProperty
Field Value
IsManipulationAdornerVisibleProperty
Identifies the IsManipulationAdornerVisible dependency property.
Declaration
public static readonly RadProperty IsManipulationAdornerVisibleProperty
Field Value
IsResizingEnabledProperty
Identifies the IsResizingEnabled dependency property.
Declaration
public static readonly RadProperty IsResizingEnabledProperty
Field Value
IsRotationEnabledProperty
Identifies the IsRotationEnabled dependency property.
Declaration
public static readonly RadProperty IsRotationEnabledProperty
Field Value
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly RadProperty IsSelectedProperty
Field Value
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly RadProperty PositionProperty
Field Value
StrokeDashArrayProperty
Identifies the StrokeDashArray dependency property.
Declaration
public static readonly RadProperty StrokeDashArrayProperty
Field Value
StrokeProperty
Identifies the Stroke dependency property.
Declaration
public static readonly RadProperty StrokeProperty
Field Value
StrokeThicknessProperty
Identifies the StrokeThickness dependency property.
Declaration
public static readonly RadProperty StrokeThicknessProperty
Field Value
editTextBox
Declaration
protected RadTextBoxControlElement editTextBox
Field Value
Properties
ActualSize
The actual size of the item.
Alignment
Gets or sets the preferred location of the element if its size is less than its parent size.
Declaration
[Browsable(false)]
public override ContentAlignment Alignment { get; set; }
Property Value
Overrides
AllowCopy
Gets or sets a value indicating whether copying is allowed.
Declaration
public bool AllowCopy { get; set; }
Property Value
True if copying is allowed; otherwise, false.
Implements
AllowCut
Gets or sets a value indicating whether cutting is allowed.
Declaration
public bool AllowCut { get; set; }
Property Value
True if cutting is allowed; otherwise, false.
Implements
AllowDelete
Gets or sets a value indicating whether deleting is allowed.
Declaration
public bool AllowDelete { get; set; }
Property Value
True if deleting is allowed; otherwise, false.
Implements
AllowPaste
Gets or sets a value indicating whether pasting is allowed.
Declaration
public bool AllowPaste { get; set; }
Property Value
True if pasting is allowed; otherwise, false.
Implements
AngleTransform
Gets or sets the rotation transform angle used when painting the element and its children.
Declaration
[Browsable(false)]
public override float AngleTransform { get; set; }
Property Value
Overrides
Bounds
Gets the bounds.
Declaration
[Browsable(false)]
public virtual Rect Bounds { get; }
Property Value
The bounds.
Implements
Content
Gets or sets the content.
Declaration
[Browsable(false)]
public object Content { get; set; }
Property Value
Implements
Remarks
The property matches the ContentControl.Content property.
Diagram
Gets the owning diagram of this instance.
Declaration
protected IGraphInternal Diagram { get; }
Property Value
Id
Gets the unique identifier of this entity.
Declaration
public string Id { get; }
Property Value
An identifier for this entity.
Implements
IsConnectorsManipulationEnabled
Gets or sets a value indicating whether manipulation on the connectors is enabled.
Declaration
public bool IsConnectorsManipulationEnabled { get; set; }
Property Value
True if manipulation on connectors is enabled; otherwise, false.
Implements
IsDraggingEnabled
Gets or sets a value indicating whether dragging is enabled.
Declaration
public bool IsDraggingEnabled { get; set; }
Property Value
True if dragging is enabled; otherwise, false.
Implements
IsDynamic
Gets or sets whether this item is dynamically generated.
Declaration
[Browsable(false)]
public bool IsDynamic { get; set; }
Property Value
If true then this item will not be serialized as part of the diagram.
Implements
Remarks
In some applications or embeddings of RadDiagram (e.g. workflows) there are shapes or connections
which are generated as part of some layout or organization. In those cases it doesn't make sense to serialize
the elements which are automatically generated as part of the application. By setting this property to true the serialization pipeline will omit the element.
IsEditable
Gets or sets a value indicating whether editing is enabled on this item.
Declaration
public bool IsEditable { get; set; }
Property Value
True if editing is enabled; otherwise, false.
Implements
Remarks
Note that the similar higher-level IsEditable can potentially overrule this setting.
IsEnabled
Gets or sets whether the diagram entity is enabled.
Declaration
public virtual bool IsEnabled { get; set; }
Property Value
True if enabled; otherwise, false.
Implements
IsInEditMode
Gets or sets a value indicating whether this instance is in edit mode.
Declaration
public bool IsInEditMode { get; set; }
Property Value
True if this instance is in edit mode; otherwise, false.
Implements
IsManipulationAdornerVisible
Gets or sets a value indicating whether the manipulation adorner is visible.
Declaration
public bool IsManipulationAdornerVisible { get; set; }
Property Value
True if the manipulation adorner is visible; otherwise, false.
Implements
IsResizingEnabled
Gets or sets a value indicating whether resizing is enabled.
Declaration
public bool IsResizingEnabled { get; set; }
Property Value
True if resizing is enabled; otherwise, false.
Implements
IsRotationEnabled
Gets or sets a value indicating whether rotation is enabled.
Declaration
public bool IsRotationEnabled { get; set; }
Property Value
true if this rotation is enabled; otherwise, false.
Implements
IsSelected
Gets or sets whether the diagram entity is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
True if selected; otherwise, false.
Implements
IsSelectedInGroup
Gets a value indicating whether this instance is selected in group.
Declaration
protected bool IsSelectedInGroup { get; set; }
Property Value
True if this item is selected in group; otherwise, false.
IsServiceManipulation
Gets whether any service is manipulating at the moment.
ParentContainer
ParentContainer
Declaration
[Browsable(false)]
public IContainerShape ParentContainer { get; }
Property Value
Implements
ParentGroup
Gets or sets the group.
Declaration
[Browsable(false)]
public IGroup ParentGroup { get; set; }
Property Value
The group.
Implements
Position
Gets or sets the position of the top left corner of the bounding rectangle of the item.
RightToLeft
Gets or sets the direction of flow of the elements and whether elements are aligned to support locales using right-to-left fonts.
Declaration
[Browsable(false)]
public override bool RightToLeft { get; set; }
Property Value
Overrides
ServiceLocator
Gets the service locator.
Declaration
protected IGraphServiceLocator ServiceLocator { get; }
Property Value
StretchHorizontally
Declaration
[Browsable(false)]
public override bool StretchHorizontally { get; set; }
Property Value
Overrides
StretchVertically
Declaration
[Browsable(false)]
public override bool StretchVertically { get; set; }
Property Value
Overrides
Stroke
Gets or sets the stroke of this item.
Declaration
[Browsable(false)]
public virtual Brush Stroke { get; set; }
Property Value
The stroke.
StrokeDashArray
Gets or sets the stroke dash array of this item.
Declaration
[Browsable(false)]
public DoubleCollection StrokeDashArray { get; set; }
Property Value
The stroke dash array.
StrokeThickness
Gets or sets the stroke thickness of this item.
Declaration
public double StrokeThickness { get; set; }
Property Value
The stroke thickness.
X
Gets or sets the horizontal position of this item.
Y
Gets or sets the vertical position of this item.
Methods
CallBeginEditEvent()
Declaration
protected virtual void CallBeginEditEvent()
CallEndEditEvent(object)
Declaration
protected virtual void CallEndEditEvent(object editedContent)
Parameters
editedContent
CustomizeTextBoxEditor()
Declaration
protected virtual void CustomizeTextBoxEditor()
Deserialize(SerializationInfo)
Deserializes the serialization info in this diagram entity.
Declaration
public virtual void Deserialize(SerializationInfo info)
Parameters
info
A SerializationInfo instance.
Implements
Initialize(IGraphServiceLocator, IGraphInternal)
Initializes the specified service locator and parent graph.
Declaration
protected virtual void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
Parameters
serviceLocator
The service locator.
graph
The diagram control.
InitializeGlobalSettingsFromDiagram(RadDiagramElement)
Declaration
protected virtual void InitializeGlobalSettingsFromDiagram(RadDiagramElement diagramParent)
Parameters
diagramParent
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
Overrides
OnGroupNameChanged()
Called when the group name changes.
Declaration
protected virtual void OnGroupNameChanged()
OnIsConnectorsManipulationEnabledChanged(bool, bool)
Called when connectors manipulation changes.
OnIsEditableChanged(bool, bool)
Called when IsEditable has changed.
OnIsInEditModeChanged(bool, bool)
Called when IsInEditMode changes.
OnIsSelectedChanged(bool, bool)
Called when the IsSelected property has changed.
OnParentChanged(RadElement)
Notifies for a change in the Parent value.
Declaration
protected override void OnParentChanged(RadElement previousParent)
Parameters
previousParent
The previous parent element (if any)
Overrides
OnPositionChanged(Point, Point)
Called when position changes.
OnPositionCoerced(Point)
Called when [position coerced].
OnPropertyChanged(string)
Called when a property value changed.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
Name of the property.
OnSizeChanged(Size, Size)
Called when the size changes.
OnStrokeThicknessChanged()
Invoked when the StrokeThickness property has changed.
Declaration
protected virtual void OnStrokeThicknessChanged()
OnZIndexChanged(int, int)
Called when the ZIndex changes.
RefreshIsSelectedInGroup()
Refreshes the is selected in group property.
Declaration
protected virtual void RefreshIsSelectedInGroup()
Serialize()
Serializes this instance.
Declaration
public virtual SerializationInfo Serialize()
Returns
Implements
UpdateVisualStates()
Updates the visual states.
Declaration
protected virtual void UpdateVisualStates()
Events
BeginEdit
Identifies the BeginEdit routed event.
EndEdit
Occurs when the editing ends.
Declaration
public event EventHandler<RadRoutedEditEventArgs> EndEdit
Event Value
ParentGroupChanged
Occurs when [group changed].
Declaration
public event EventHandler<PropertyEventArgs<IGroup>> ParentGroupChanged
Event Value
Implements
PreviewBeginEdit
Occurs before the editing starts.
Declaration
public event CancelEventHandler PreviewBeginEdit
Event Value
PreviewEndEdit
Occurs before the editing ends.
Declaration
public event CancelEventHandler PreviewEndEdit
Event Value
PropertyChanged
Occurs when a property value changes.
Declaration
public event EventHandler<PropertyEventArgs> PropertyChanged
Event Value
Implements