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
- SoapProtocolReflector.cs
- StorageScalarPropertyMapping.cs
- DbDataAdapter.cs
- ClonableStack.cs
- HelpProvider.cs
- AxWrapperGen.cs
- SqlDataReaderSmi.cs
- HttpCacheParams.cs
- SQLDouble.cs
- DecoderNLS.cs
- PriorityBindingExpression.cs
- HyperLinkColumn.cs
- contentDescriptor.cs
- WindowsFont.cs
- WebSysDisplayNameAttribute.cs
- IteratorFilter.cs
- SqlParameterCollection.cs
- TraceInternal.cs
- MaskedTextBoxDesignerActionList.cs
- ExternalDataExchangeClient.cs
- COAUTHINFO.cs
- XPathDocument.cs
- SelectionRangeConverter.cs
- StateRuntime.cs
- MessageBox.cs
- JoinQueryOperator.cs
- StylusPointProperties.cs
- Tablet.cs
- SchemaCollectionPreprocessor.cs
- SqlException.cs
- CallbackHandler.cs
- ConnectionManagementSection.cs
- XmlSchemaGroup.cs
- LinqDataSourceHelper.cs
- AspNetSynchronizationContext.cs
- PathFigure.cs
- BeginEvent.cs
- DropShadowEffect.cs
- TextMessageEncoder.cs
- PrincipalPermission.cs
- ToolStripItemGlyph.cs
- PermissionAttributes.cs
- HtmlLinkAdapter.cs
- DSASignatureDeformatter.cs
- NegotiationTokenAuthenticatorState.cs
- RemotingConfiguration.cs
- RegexWriter.cs
- GridViewRowPresenter.cs
- WindowsTokenRoleProvider.cs
- MetadataItemCollectionFactory.cs
- DPAPIProtectedConfigurationProvider.cs
- Control.cs
- validationstate.cs
- GeometryGroup.cs
- RemoteWebConfigurationHostServer.cs
- Track.cs
- ProviderManager.cs
- IndexedGlyphRun.cs
- ScaleTransform3D.cs
- ResourceCategoryAttribute.cs
- CodeTypeDelegate.cs
- DataGridView.cs
- SettingsSavedEventArgs.cs
- ImportContext.cs
- HttpProfileBase.cs
- MediaPlayerState.cs
- WebServiceParameterData.cs
- BrowserDefinitionCollection.cs
- Point4DConverter.cs
- StylusShape.cs
- SqlDataSource.cs
- List.cs
- __Error.cs
- MsmqAuthenticationMode.cs
- DesignerAutoFormatCollection.cs
- XamlTemplateSerializer.cs
- ConstructorArgumentAttribute.cs
- WebPartMenu.cs
- ipaddressinformationcollection.cs
- DelayedRegex.cs
- IODescriptionAttribute.cs
- ClientType.cs
- XsltCompileContext.cs
- PreviewKeyDownEventArgs.cs
- DescriptionAttribute.cs
- BooleanAnimationUsingKeyFrames.cs
- Int64Storage.cs
- SystemResourceHost.cs
- DbBuffer.cs
- RadioButtonStandardAdapter.cs
- CryptoStream.cs
- DesignerVerb.cs
- IdentityReference.cs
- FileDialogCustomPlacesCollection.cs
- HttpProfileGroupBase.cs
- DataSourceView.cs
- ToolStripDropDown.cs
- Point3DCollection.cs
- SymLanguageType.cs
- Highlights.cs