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
- _LocalDataStoreMgr.cs
- DeploymentSection.cs
- PolygonHotSpot.cs
- AdornedElementPlaceholder.cs
- FolderBrowserDialog.cs
- OrderByQueryOptionExpression.cs
- StickyNoteHelper.cs
- ContextQuery.cs
- ProcessInfo.cs
- ExternalCalls.cs
- ContextProperty.cs
- DefaultShape.cs
- WsrmTraceRecord.cs
- SortedDictionary.cs
- SettingsBase.cs
- DbModificationCommandTree.cs
- Timer.cs
- TextRunCacheImp.cs
- SqlClientMetaDataCollectionNames.cs
- MetricEntry.cs
- TemplateParser.cs
- ImageMapEventArgs.cs
- _LocalDataStoreMgr.cs
- PropertyDescriptor.cs
- DbDeleteCommandTree.cs
- ValidationHelper.cs
- InheritanceContextChangedEventManager.cs
- WorkflowElementDialog.cs
- DllNotFoundException.cs
- RequiredAttributeAttribute.cs
- Latin1Encoding.cs
- FreezableCollection.cs
- WindowsHyperlink.cs
- DetailsViewUpdateEventArgs.cs
- MediaElement.cs
- ResolveRequestResponseAsyncResult.cs
- StylusButton.cs
- DataError.cs
- SqlHelper.cs
- CombinedGeometry.cs
- OperatingSystem.cs
- LinearGradientBrush.cs
- MissingMethodException.cs
- DatePickerTextBox.cs
- ToolTip.cs
- ServiceOperationHelpers.cs
- PropertyItemInternal.cs
- CompositeKey.cs
- SafeCryptoHandles.cs
- TextTreeRootTextBlock.cs
- RoleService.cs
- StylusDevice.cs
- AnchoredBlock.cs
- KnowledgeBase.cs
- ErrorStyle.cs
- CopyCodeAction.cs
- KeyboardNavigation.cs
- HiddenField.cs
- HostingPreferredMapPath.cs
- StdValidatorsAndConverters.cs
- StylusPlugin.cs
- FacetEnabledSchemaElement.cs
- ProviderMetadata.cs
- DataShape.cs
- UnitySerializationHolder.cs
- Internal.cs
- SqlBooleanMismatchVisitor.cs
- DataGridItemAutomationPeer.cs
- IDReferencePropertyAttribute.cs
- SrgsElementFactoryCompiler.cs
- WebReferencesBuildProvider.cs
- DbLambda.cs
- WebPartManagerInternals.cs
- ValidationErrorCollection.cs
- ToolboxItem.cs
- TemplateBamlRecordReader.cs
- HttpHandlerAction.cs
- ReflectionPermission.cs
- URLAttribute.cs
- Pts.cs
- ListViewItemMouseHoverEvent.cs
- RectangleF.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- XmlnsCache.cs
- KeyedHashAlgorithm.cs
- PropertyPathConverter.cs
- SQLMoney.cs
- ScalarConstant.cs
- Native.cs
- ParseNumbers.cs
- BmpBitmapDecoder.cs
- CompositeFontFamily.cs
- DataGridViewMethods.cs
- ProfileSection.cs
- XmlQueryRuntime.cs
- ObjectFullSpanRewriter.cs
- ProtocolsConfigurationEntry.cs
- LocationUpdates.cs
- CollectionViewGroup.cs
- DataPagerFieldItem.cs