Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowTraceTransfer.cs
- DefaultEvaluationContext.cs
- DocumentPageViewAutomationPeer.cs
- CompiledXpathExpr.cs
- NativeRightsManagementAPIsStructures.cs
- GPStream.cs
- ImageFormat.cs
- SerializationObjectManager.cs
- GlobalEventManager.cs
- Double.cs
- GuidTagList.cs
- InvalidDataException.cs
- MetabaseReader.cs
- Separator.cs
- VisualTreeHelper.cs
- XamlBuildTaskServices.cs
- TimeSpanFormat.cs
- SizeChangedInfo.cs
- SerializableAttribute.cs
- IOThreadTimer.cs
- ListViewTableRow.cs
- CodeConstructor.cs
- TableRow.cs
- RectAnimationUsingKeyFrames.cs
- ServicesExceptionNotHandledEventArgs.cs
- StringFreezingAttribute.cs
- RequestNavigateEventArgs.cs
- TraceListener.cs
- DataGridViewControlCollection.cs
- Timeline.cs
- LocalizationParserHooks.cs
- CmsInterop.cs
- WindowsRichEditRange.cs
- ScrollProperties.cs
- ScriptReferenceEventArgs.cs
- AttributeProviderAttribute.cs
- TreeNodeCollection.cs
- SwitchAttribute.cs
- ADConnectionHelper.cs
- Stack.cs
- PackageRelationshipSelector.cs
- Propagator.ExtentPlaceholderCreator.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ProtocolsConfiguration.cs
- _NegoState.cs
- ButtonBase.cs
- ExpressionBuilder.cs
- ProcessModelInfo.cs
- PropertyGrid.cs
- ImageList.cs
- ApplicationActivator.cs
- LocalBuilder.cs
- WindowsTokenRoleProvider.cs
- ExpressionBindingCollection.cs
- XamlBuildTaskServices.cs
- Camera.cs
- SecurityState.cs
- PenContexts.cs
- TextUtf8RawTextWriter.cs
- SizeValueSerializer.cs
- StrongNameKeyPair.cs
- SymmetricAlgorithm.cs
- NetCodeGroup.cs
- TreeViewAutomationPeer.cs
- DateTimeStorage.cs
- WebPartEventArgs.cs
- Utils.cs
- ForEachAction.cs
- OrderedDictionary.cs
- PropertyInformation.cs
- HTMLTagNameToTypeMapper.cs
- DropShadowBitmapEffect.cs
- TransactionManagerProxy.cs
- PLINQETWProvider.cs
- Converter.cs
- PeerResolverBindingElement.cs
- SafeFileHandle.cs
- SQLDecimal.cs
- SHA256Managed.cs
- System.Data_BID.cs
- DataColumn.cs
- LogicalExpressionEditor.cs
- ObjectReaderCompiler.cs
- CallContext.cs
- OleDbSchemaGuid.cs
- RegexCompiler.cs
- FrameworkTextComposition.cs
- FormViewInsertEventArgs.cs
- FunctionOverloadResolver.cs
- UserNameSecurityTokenProvider.cs
- SqlDataSourceStatusEventArgs.cs
- ArrayConverter.cs
- SourceFilter.cs
- SapiRecognizer.cs
- PerfProviderCollection.cs
- EpmSyndicationContentSerializer.cs
- SearchForVirtualItemEventArgs.cs
- Triplet.cs
- Psha1DerivedKeyGenerator.cs
- LinqDataSourceStatusEventArgs.cs