本文整理汇总了C#中BoundsSpecified类的典型用法代码示例。如果您正苦于以下问题:C# BoundsSpecified类的具体用法?C# BoundsSpecified怎么用?C# BoundsSpecified使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BoundsSpecified类属于命名空间,在下文中一共展示了BoundsSpecified类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if (AutoSize)
height = _height;
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:pvginkel,项目名称:NuGetUpdate,代码行数:7,代码来源:PathLabel.cs
示例2: ScaleControl
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
{
if (this.Scalable)
{
base.ScaleControl(factor, specified);
}
}
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:7,代码来源:ScalablePictureBox.cs
示例3: ScaleControl
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
{
try
{
//splitContainerScaling = true;
base.ScaleControl(factor, specified);
float scale;
if (Orientation == Orientation.Vertical)
{
scale = factor.Width;
}
else
{
scale = factor.Height;
}
Panel1MinSize = (int)Math.Round((float)Panel1MinSize * scale);
Panel2MinSize = (int)Math.Round((float)Panel2MinSize * scale);
SplitterDistance = (int)Math.Round((float)SplitterDistance * scale);
}
finally
{
//splitContainerScaling = false;
}
}
开发者ID:Camel-RD,项目名称:MyDownloder,代码行数:26,代码来源:MySplitContainer.cs
示例4: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if (specified == BoundsSpecified.All)
base.SetBoundsCore(x, y, width , height, specified);
else
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:paopaofeng,项目名称:dp2,代码行数:7,代码来源:DoubleComboBox.cs
示例5: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if (!(_LockWidth == 0))
width = _LockWidth;
if (!(_LockHeight == 0))
height = _LockHeight;
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:burber,项目名称:APBEMUPANEL,代码行数:8,代码来源:Themebase.cs
示例6: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
int nLimitHeight = this.TextBox.Height * 2 + 4;
if (height > nLimitHeight)
height = nLimitHeight;
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:renyh1013,项目名称:dp2,代码行数:8,代码来源:DoubleTextBox.cs
示例7: SetBoundsCore
protected virtual void SetBoundsCore(Rectangle bounds, BoundsSpecified specified)
{
if (bounds != this.bounds)
{
Rectangle oldBounds = this.bounds;
this.bounds = bounds;
this.OnBoundsChanged(oldBounds, bounds);
}
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:9,代码来源:ArrangedElement.cs
示例8: SetBoundsCore
/// <summary>
/// Sets the bounds of the control.
/// </summary>
/// <param name="x">The new left position.</param>
/// <param name="y">The new top position.</param>
/// <param name="width">The new width.</param>
/// <param name="height">The new height.</param>
/// <param name="specified">Which of the bounds should be set.</param>
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if ((specified & BoundsSpecified.Height) == BoundsSpecified.Height)
{
height = this.PreferredHeight;
}
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:Jeremiahf,项目名称:wix3,代码行数:17,代码来源:WixGroupLabel.cs
示例9: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
base.SetBoundsCore(x, y, width, height, specified);
int h = GetItemHeight();
int n = itemsHolder.Controls.Count;
for (int i = 0; i < n; i++)
itemsHolder.Controls[i].Height = h;
}
开发者ID:Hrombel,项目名称:AbstractDevelop,代码行数:9,代码来源:CreateProjectMenu.cs
示例10: ScaleControl
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
{
base.ScaleControl(factor, specified);
this.descriptionTextBox.scaleList(factor);
if (factor.Height > 1)
{
textBoxDuration.Top = (Height / 2) - (textBoxDuration.Height / 2);
}
}
开发者ID:rodrigos01,项目名称:toggldesktop,代码行数:9,代码来源:TimerEditViewController.cs
示例11: ScaleControl
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
{
base.ScaleControl(factor, specified);
const float baseDpi = 96.0f;
this.CurrentScaleFactor = new SizeF(
this.CurrentAutoScaleDimensions.Width / baseDpi,
this.CurrentAutoScaleDimensions.Height / baseDpi);
}
开发者ID:urusupa,项目名称:OpenTween,代码行数:10,代码来源:OTBaseForm.cs
示例12: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if (this.AutoSize & ((specified & BoundsSpecified.Size) > BoundsSpecified.None))
{
Size preferredSize = base.PreferredSize;
width = preferredSize.Width;
height = preferredSize.Height;
}
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:shankithegreat,项目名称:commanderdotnet,代码行数:10,代码来源:AnimatedThrobber.cs
示例13: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if(Dock != DockStyle.None && AutoSize )
{
Size s = base.GetPreferredSize(new Size(1, 1));
base.SetBoundsCore(x, y, s.Width, s.Height, specified);
}
else
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:GoldMax,项目名称:Pulsar.NET,代码行数:10,代码来源:SimLayoutTable.cs
示例14: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height,
BoundsSpecified specified)
{
if (AutoSize && (specified & BoundsSpecified.Size) != 0)
{
var size = GetAutoSize();
width = size.Width;
height = size.Height;
}
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:johnmensen,项目名称:TradeSharp,代码行数:11,代码来源:ImagedLabelList.cs
示例15: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if ((BoundsSpecified.Width & specified) == BoundsSpecified.Width)
{
width = Math.Max(width, 100);
}
if ((BoundsSpecified.Height & specified) == BoundsSpecified.Height)
{
height = Math.Max(height, 90);
}
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:12,代码来源:DataGridViewColumnTypePicker.cs
示例16: SetBoundsCore
/// <summary>
/// Performs the work of setting the
/// specified bounds of this control.
/// </summary>
/// <param name="x">The new <see cref="P:System.Windows.Forms.Control.Left"/> property value of the control.</param>
/// <param name="y">The new <see cref="P:System.Windows.Forms.Control.Right"/> property value of the control.</param>
/// <param name="width">The new <see cref="P:System.Windows.Forms.Control.Width"/> property value of the control.</param>
/// <param name="height">The new <see cref="P:System.Windows.Forms.Control.Height"/> property value of the control.</param>
/// <param name="specified">A bitwise combination of the <see cref="T:System.Windows.Forms.BoundsSpecified"/> values.</param>
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if ((specified & BoundsSpecified.Height) != 0)
{
if (height != SystemInformation.Border3DSize.Height)
{
height = SystemInformation.Border3DSize.Height;
}
}
base.SetBoundsCore (x, y, width, height, specified);
}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:21,代码来源:NuGenBevel.cs
示例17: ScaleControl
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
{
base.ScaleControl(factor, specified);
splitContainer1.SplitterDistance = (int)(splitContainer1.SplitterDistance * factor.Width);
splitContainer2.SplitterDistance = (int)(splitContainer2.SplitterDistance * factor.Width);
splitContainer2.Panel1MinSize = (int)(splitContainer2.Panel1MinSize * factor.Width);
splitContainer3.SplitterDistance = (int)(splitContainer3.SplitterDistance * factor.Height);
splitContainer4.SplitterDistance = (int)(splitContainer4.SplitterDistance * factor.Height);
_scaleFactorX *= factor.Width;
_scaleFactorY *= factor.Height;
}
开发者ID:babyinablender,项目名称:RomVault,代码行数:13,代码来源:FrmMain.cs
示例18: SetBoundsCore
// The size of the tab page is set by the parent
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
if (Parent != null)
{
Rectangle fix = (base.Parent as TabControl).DisplayRectangle;
// Only change the size if we have to.
if (fix != Bounds)
{
base.SetBoundsCore(fix.X, fix.Y, fix.Width, fix.Height, BoundsSpecified.All);
}
}
else
base.SetBoundsCore(x, y, width, height, specified);
}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:15,代码来源:TabPage.cs
示例19: SetBoundsCore
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
{
int verticalScrollWidth = 0;
int horizontalScrollWidth = 0;
if (_isVerticalScrollHidden)
{
verticalScrollWidth = this.Size.Width - this.ClientSize.Width + 2;
}
if (_isHorizontalScrollHidden)
{
horizontalScrollWidth = this.Size.Height - this.ClientSize.Height + 2;
}
base.SetBoundsCore(x, y, width + verticalScrollWidth, height + horizontalScrollWidth, specified);
}
开发者ID:chinnisuraj1984,项目名称:navigational,代码行数:16,代码来源:CustomScrollableTableLayoutPanel.cs
示例20: SetBounds
/// <summary>
/// </summary>
protected override void SetBounds(int x, int y, int width, int height, BoundsSpecified specified)
{
if ((specified & BoundsSpecified.Width) != BoundsSpecified.None)
{
width = Math.Min(200, Math.Max(2, width));
base.SetBounds(x, y, width, height, specified);
if (this.Owner != null)
{
this.Owner.MeasureButtons();
this.Owner.Refresh();
}
}
else
{
base.SetBounds(x, y, width, height, specified);
}
}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:NuGenMiniBarSpace.cs
注:本文中的BoundsSpecified类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论