Source/VerticalContainerItem.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the container which layouts items vertically.
/// </summary>
[System.ComponentModel.ToolboxItem(false),System.ComponentModel.DesignTimeVisible(false)]
public class VerticalContainerItem:ImageItem
{
#region Private Variables
private int m_ItemSpacing=0;
#endregion
#region Constructor
/// <summary>
/// Creates new instance of the object.
/// </summary>
public VerticalContainerItem():base()
{
m_IsContainer=true;
m_SystemItem=true;
m_SupportedOrientation=eSupportedOrientation.Horizontal;
m_AllowOnlyOneSubItemExpanded=false;
}
#endregion
#region Overrides Implementation
/// <summary>
/// Returns copy of VerticalContainerItem item
/// </summary>
public override BaseItem Copy()
{
VerticalContainerItem objCopy=new VerticalContainerItem();
this.CopyToItem(objCopy);
return objCopy;
}
/// <summary>
/// Copies this object into the different instance.
/// </summary>
/// <param name="copy">Instance of the object to copy to. Must be of the same type.</param>
protected override void CopyToItem(BaseItem copy)
{
VerticalContainerItem objCopy=copy as VerticalContainerItem;
base.CopyToItem(objCopy);
}
/// <summary>
/// Gets or sets a value indicating whether the item is expanded or not. For Popup items this would indicate whether the item is popped up or not.
/// </summary>
[System.ComponentModel.Browsable(false),System.ComponentModel.DefaultValue(false),System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public override bool Expanded
{
get
{
return base.Expanded;
}
set
{
后面还有 316 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。