Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutSettings.cs / 1 / 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
- Tuple.cs
- RequestResizeEvent.cs
- DrawingDrawingContext.cs
- ComPlusSynchronizationContext.cs
- ContainerActivationHelper.cs
- FunctionCommandText.cs
- CharConverter.cs
- httpapplicationstate.cs
- References.cs
- DispatchRuntime.cs
- MenuItemStyleCollectionEditor.cs
- CompoundFileIOPermission.cs
- ScaleTransform3D.cs
- KnowledgeBase.cs
- XmlNamespaceMapping.cs
- SqlXmlStorage.cs
- ListChunk.cs
- HtmlImage.cs
- CalendarModeChangedEventArgs.cs
- TextSelectionHelper.cs
- UrlPropertyAttribute.cs
- DbModificationClause.cs
- SubpageParaClient.cs
- HtmlTextArea.cs
- TextBoxAutoCompleteSourceConverter.cs
- ScrollBarAutomationPeer.cs
- WindowsAuthenticationEventArgs.cs
- MessageEventSubscriptionService.cs
- ClientProxyGenerator.cs
- DataGridViewElement.cs
- AuthenticationModuleElement.cs
- SyndicationSerializer.cs
- EnumMemberAttribute.cs
- OnOperation.cs
- StringUtil.cs
- ListViewInsertionMark.cs
- TextEffect.cs
- KeyBinding.cs
- PointConverter.cs
- SqlDataSourceFilteringEventArgs.cs
- EventProviderWriter.cs
- NativeMethods.cs
- PeerObject.cs
- InternalCache.cs
- CompiledRegexRunner.cs
- PropertyChangeTracker.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TaskHelper.cs
- TableStyle.cs
- TextMessageEncoder.cs
- DataSourceCache.cs
- CellParaClient.cs
- uribuilder.cs
- C14NUtil.cs
- ToolboxSnapDragDropEventArgs.cs
- TypeLibraryHelper.cs
- ContentIterators.cs
- PerfService.cs
- DataListGeneralPage.cs
- Wizard.cs
- COM2ICategorizePropertiesHandler.cs
- FlowDocumentFormatter.cs
- DataGridViewCell.cs
- FunctionImportMapping.cs
- ToolStripDropDownClosedEventArgs.cs
- AudioDeviceOut.cs
- TileBrush.cs
- CreateUserWizardStep.cs
- DataGridViewCheckBoxCell.cs
- User.cs
- _DomainName.cs
- LinearKeyFrames.cs
- SqlVersion.cs
- XmlSchemaAttributeGroup.cs
- Crc32.cs
- AtomEntry.cs
- serverconfig.cs
- HostExecutionContextManager.cs
- ValidationEventArgs.cs
- DbProviderFactoriesConfigurationHandler.cs
- DateTimeConverter.cs
- TreeViewHitTestInfo.cs
- MethodAccessException.cs
- Border.cs
- ProfileSection.cs
- SchemaConstraints.cs
- HttpDebugHandler.cs
- EntityModelSchemaGenerator.cs
- DataGridViewCellMouseEventArgs.cs
- ObjRef.cs
- DataSet.cs
- ContainerUtilities.cs
- ipaddressinformationcollection.cs
- Rect.cs
- SeekableReadStream.cs
- x509utils.cs
- LoginUtil.cs
- UInt64Converter.cs
- ClientConvert.cs
- StringDictionaryCodeDomSerializer.cs