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
- newinstructionaction.cs
- VarRemapper.cs
- ControlAdapter.cs
- ItemCollection.cs
- VarInfo.cs
- XmlCountingReader.cs
- WindowsToolbarAsMenu.cs
- NonBatchDirectoryCompiler.cs
- CustomErrorsSection.cs
- FormsAuthenticationModule.cs
- XmlSchemaProviderAttribute.cs
- NotificationContext.cs
- MarshalByRefObject.cs
- RemoteCryptoTokenProvider.cs
- FlowNode.cs
- SmtpDigestAuthenticationModule.cs
- Literal.cs
- HtmlInputImage.cs
- AssemblyCollection.cs
- RadioButtonList.cs
- OdbcConnectionString.cs
- MenuBindingsEditorForm.cs
- ThreadPool.cs
- ForEachAction.cs
- QilInvokeLateBound.cs
- PropertyPathWorker.cs
- SizeChangedEventArgs.cs
- DoubleAverageAggregationOperator.cs
- OdbcRowUpdatingEvent.cs
- DelegatingConfigHost.cs
- TransportElement.cs
- Vector3DCollection.cs
- ArraySubsetEnumerator.cs
- EndpointFilterProvider.cs
- ClonableStack.cs
- ProcessingInstructionAction.cs
- DataPagerField.cs
- TouchEventArgs.cs
- PropertyItemInternal.cs
- PageCodeDomTreeGenerator.cs
- ComponentCollection.cs
- ClientConfigPaths.cs
- ObjectKeyFrameCollection.cs
- EditorZone.cs
- StrongNameMembershipCondition.cs
- CreateSequenceResponse.cs
- PEFileEvidenceFactory.cs
- MDIControlStrip.cs
- ToolStripItemDesigner.cs
- GridViewDeleteEventArgs.cs
- ConnectionManagementElement.cs
- DataGridHeaderBorder.cs
- TextEvent.cs
- PropertyValueUIItem.cs
- Random.cs
- Rotation3DAnimation.cs
- XsdValidatingReader.cs
- ToolStripDropDownClosedEventArgs.cs
- CTreeGenerator.cs
- AuthorizationSection.cs
- DirtyTextRange.cs
- CharacterBuffer.cs
- UIElementHelper.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- DataGridViewBand.cs
- MouseButtonEventArgs.cs
- Thumb.cs
- UIElement.cs
- ErrorWebPart.cs
- WebPartConnectionsConnectVerb.cs
- DiscreteKeyFrames.cs
- AuthenticationConfig.cs
- ActivationServices.cs
- StaticSiteMapProvider.cs
- ToolStripPanelCell.cs
- GridViewDeleteEventArgs.cs
- LowerCaseStringConverter.cs
- X509Certificate2.cs
- PriorityQueue.cs
- DataGridRow.cs
- TransformGroup.cs
- x509utils.cs
- ArcSegment.cs
- EntityCommand.cs
- MasterPage.cs
- MetadataCacheItem.cs
- SystemColors.cs
- XmlWhitespace.cs
- WindowsComboBox.cs
- DesignParameter.cs
- SaveLedgerEntryRequest.cs
- SmtpNegotiateAuthenticationModule.cs
- SmtpNtlmAuthenticationModule.cs
- SynchronizedPool.cs
- ZipFileInfo.cs
- ChannelDispatcher.cs
- GeometryDrawing.cs
- ActivityBindForm.Designer.cs
- SimpleHandlerBuildProvider.cs
- SmtpReplyReader.cs