Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutSettings.cs / 1305376 / FlowLayoutSettings.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms.Layout;
///
[DefaultProperty("FlowDirection")]
public class FlowLayoutSettings : LayoutSettings {
internal FlowLayoutSettings(IArrangedElement owner) : base(owner) {}
///
public override LayoutEngine LayoutEngine {
get { return FlowLayout.Instance; }
}
///
[SRDescription(SR.FlowPanelFlowDirectionDescr)]
[DefaultValue(FlowDirection.LeftToRight)]
[SRCategory(SR.CatLayout)]
public FlowDirection FlowDirection {
get { return FlowLayout.GetFlowDirection(Owner); }
set {
FlowLayout.SetFlowDirection(Owner, value);
Debug.Assert(FlowDirection == value, "FlowDirection should be the same as we set it");
}
}
///
[SRDescription(SR.FlowPanelWrapContentsDescr)]
[DefaultValue(true)]
[SRCategory(SR.CatLayout)]
public bool WrapContents {
get { return FlowLayout.GetWrapContents(Owner); }
set {
FlowLayout.SetWrapContents(Owner, value);
Debug.Assert(WrapContents == value, "WrapContents should be the same as we set it");
}
}
public void SetFlowBreak(object child, bool value) {
IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child);
if (GetFlowBreak(child) != value) {
CommonProperties.SetFlowBreak(element, value);
}
}
public bool GetFlowBreak(object child) {
IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child);
return CommonProperties.GetFlowBreak(element);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms.Layout;
///
[DefaultProperty("FlowDirection")]
public class FlowLayoutSettings : LayoutSettings {
internal FlowLayoutSettings(IArrangedElement owner) : base(owner) {}
///
public override LayoutEngine LayoutEngine {
get { return FlowLayout.Instance; }
}
///
[SRDescription(SR.FlowPanelFlowDirectionDescr)]
[DefaultValue(FlowDirection.LeftToRight)]
[SRCategory(SR.CatLayout)]
public FlowDirection FlowDirection {
get { return FlowLayout.GetFlowDirection(Owner); }
set {
FlowLayout.SetFlowDirection(Owner, value);
Debug.Assert(FlowDirection == value, "FlowDirection should be the same as we set it");
}
}
///
[SRDescription(SR.FlowPanelWrapContentsDescr)]
[DefaultValue(true)]
[SRCategory(SR.CatLayout)]
public bool WrapContents {
get { return FlowLayout.GetWrapContents(Owner); }
set {
FlowLayout.SetWrapContents(Owner, value);
Debug.Assert(WrapContents == value, "WrapContents should be the same as we set it");
}
}
public void SetFlowBreak(object child, bool value) {
IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child);
if (GetFlowBreak(child) != value) {
CommonProperties.SetFlowBreak(element, value);
}
}
public bool GetFlowBreak(object child) {
IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child);
return CommonProperties.GetFlowBreak(element);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int64.cs
- PatternMatcher.cs
- HtmlInputCheckBox.cs
- messageonlyhwndwrapper.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- PaperSource.cs
- PathGradientBrush.cs
- TableCellsCollectionEditor.cs
- DetailsViewRowCollection.cs
- EncoderParameter.cs
- DefaultClaimSet.cs
- ConditionalAttribute.cs
- RelationshipConverter.cs
- OletxTransactionHeader.cs
- RectAnimationBase.cs
- CategoryGridEntry.cs
- FlowDocumentPage.cs
- ToolStripDropTargetManager.cs
- AsynchronousChannelMergeEnumerator.cs
- FormViewRow.cs
- XPathAncestorQuery.cs
- ScaleTransform.cs
- ConnectionStringsExpressionBuilder.cs
- ZipPackagePart.cs
- OracleBinary.cs
- DeferredSelectedIndexReference.cs
- DbQueryCommandTree.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- Normalizer.cs
- RuntimeDelegateArgument.cs
- ToolStripContentPanel.cs
- MessageBox.cs
- ToolStripPanelCell.cs
- ViewCellSlot.cs
- CqlIdentifiers.cs
- AdRotator.cs
- LOSFormatter.cs
- BasicExpressionVisitor.cs
- Effect.cs
- XmlElementList.cs
- FileCodeGroup.cs
- SimpleBitVector32.cs
- ZipIOCentralDirectoryFileHeader.cs
- Command.cs
- XhtmlBasicObjectListAdapter.cs
- Base64WriteStateInfo.cs
- HttpStreamXmlDictionaryWriter.cs
- SafeThreadHandle.cs
- TakeQueryOptionExpression.cs
- CaseInsensitiveComparer.cs
- SqlDataSourceConfigureSortForm.cs
- DrawingGroupDrawingContext.cs
- ProcessThreadCollection.cs
- ThousandthOfEmRealDoubles.cs
- TableLayoutPanel.cs
- ClrProviderManifest.cs
- HyperLinkStyle.cs
- SponsorHelper.cs
- Token.cs
- MemberProjectedSlot.cs
- ToolStripSettings.cs
- XmlWrappingReader.cs
- GlobalizationAssembly.cs
- SafeEventHandle.cs
- CuspData.cs
- ComponentTray.cs
- WrappedKeySecurityToken.cs
- FamilyTypeface.cs
- AccessedThroughPropertyAttribute.cs
- COM2IDispatchConverter.cs
- ScrollProperties.cs
- FileLogRecord.cs
- URL.cs
- ManagementOperationWatcher.cs
- TextWriter.cs
- SHA384.cs
- PenThreadWorker.cs
- safelink.cs
- TextEndOfSegment.cs
- OleDragDropHandler.cs
- EntityDataSourceStatementEditor.cs
- InternalCache.cs
- NonParentingControl.cs
- AffineTransform3D.cs
- IntranetCredentialPolicy.cs
- PrintPreviewDialog.cs
- InfoCardClaim.cs
- WinEventQueueItem.cs
- BitmapEffectGeneralTransform.cs
- UdpChannelListener.cs
- shaperfactoryquerycacheentry.cs
- OneOfTypeConst.cs
- AppPool.cs
- HttpConfigurationSystem.cs
- HotSpotCollection.cs
- WindowsStatusBar.cs
- GridViewItemAutomationPeer.cs
- CodeEventReferenceExpression.cs
- DependencyPropertyValueSerializer.cs
- GridViewCommandEventArgs.cs