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
- QilGenerator.cs
- XmlNavigatorFilter.cs
- XmlAnyAttributeAttribute.cs
- RoleServiceManager.cs
- DecoderExceptionFallback.cs
- backend.cs
- SystemResourceKey.cs
- RedBlackList.cs
- PropertyEmitterBase.cs
- InitializerFacet.cs
- IssuanceTokenProviderBase.cs
- glyphs.cs
- XmlWrappingReader.cs
- Context.cs
- ObjectDataSourceEventArgs.cs
- PropertyTabChangedEvent.cs
- BaseAsyncResult.cs
- DbReferenceCollection.cs
- SqlStream.cs
- DockPanel.cs
- SqlDataSourceFilteringEventArgs.cs
- X509Certificate2.cs
- ApplicationDirectoryMembershipCondition.cs
- OrthographicCamera.cs
- GuidelineSet.cs
- GroupDescription.cs
- SlotInfo.cs
- RecordManager.cs
- SparseMemoryStream.cs
- ContentPlaceHolder.cs
- PublisherMembershipCondition.cs
- MultiDataTrigger.cs
- VisualBasicSettingsHandler.cs
- QilExpression.cs
- TextSchema.cs
- OleAutBinder.cs
- BitmapFrameDecode.cs
- FormViewUpdateEventArgs.cs
- DesignerTransaction.cs
- LogicalExpressionTypeConverter.cs
- SymbolEqualComparer.cs
- AuthStoreRoleProvider.cs
- FactoryGenerator.cs
- AppDomainCompilerProxy.cs
- BitmapVisualManager.cs
- ImageCodecInfo.cs
- TransformerInfo.cs
- ConnectionProviderAttribute.cs
- AssociatedControlConverter.cs
- ConfigUtil.cs
- StringValidator.cs
- WorkflowMarkupSerializerMapping.cs
- HtmlInputReset.cs
- ObjectQuery.cs
- GlyphRun.cs
- DataGridPreparingCellForEditEventArgs.cs
- BindingCollection.cs
- ResourceReferenceExpression.cs
- PathFigureCollection.cs
- LassoHelper.cs
- HostingMessageProperty.cs
- DelegateTypeInfo.cs
- TextEncodedRawTextWriter.cs
- ToolStripItemClickedEventArgs.cs
- MethodBody.cs
- ContentWrapperAttribute.cs
- FormsIdentity.cs
- Preprocessor.cs
- Content.cs
- ADMembershipProvider.cs
- AppLevelCompilationSectionCache.cs
- MembershipSection.cs
- ColumnMapTranslator.cs
- DocumentViewerHelper.cs
- AdornerPresentationContext.cs
- ContextStack.cs
- DataGridTextBoxColumn.cs
- SoapAttributeOverrides.cs
- CodeMethodInvokeExpression.cs
- EditCommandColumn.cs
- BitmapFrameEncode.cs
- StatusBar.cs
- codemethodreferenceexpression.cs
- PageHandlerFactory.cs
- RuntimeIdentifierPropertyAttribute.cs
- VectorValueSerializer.cs
- FilterQueryOptionExpression.cs
- Image.cs
- SectionInput.cs
- GetImportFileNameRequest.cs
- DataGridViewUtilities.cs
- Renderer.cs
- EdmComplexPropertyAttribute.cs
- DebugTracing.cs
- RsaSecurityTokenAuthenticator.cs
- MaskedTextBox.cs
- Logging.cs
- SignerInfo.cs
- CLSCompliantAttribute.cs
- HttpsChannelFactory.cs